Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rule creation UI changes/additions #1574

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

ydkmlt84
Copy link
Collaborator

@ydkmlt84 ydkmlt84 commented Feb 11, 2025

Wanted to get this out there so you could take a look. This has been needed for a long time, and I think I am on the right track with the layout.

  • add information to help modal
  • verify color consistency
  • verify all mobile functionality
  • tweak margins and padding

@ydkmlt84 ydkmlt84 added the enhancement New feature or request label Feb 11, 2025
@ydkmlt84 ydkmlt84 requested a review from benscobie February 11, 2025 19:26
Comment on lines +354 to +357
onClick={(e) => {
e.preventDefault()
props.onOpenHelpModal()
}}
Copy link
Collaborator

@benscobie benscobie Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need preventDefault here, set the type to button. By default it'll be type=submit when in a <form>: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type

Suggested change
onClick={(e) => {
e.preventDefault()
props.onOpenHelpModal()
}}
type="button"
onClick={props.onOpenHelpModal}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No way that is the only thing you saw that needed an update/change.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't finished yet, I started and got tired 😆 . I'll have more of a look soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants