-
Notifications
You must be signed in to change notification settings - Fork 7
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
Custom checkbox #292
Custom checkbox #292
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The border-color of the unchecked unfocused (not in error state) checkbox is too dark (Figma)
- Please use the focus (border+glow) we also use for buttons for the focus state of checkboxes (See components in Figma)
- When the warning is shown, the checkbox should have a error/600 red border. Currently it doesn't. (Figma)
- The checkmark in design is a bit heavier then the current implementation (Figma)
- The label element should have a top and border padding or margin of 1.5rem, so it is properly spaced to the alert and the submit button.
- On small viewports, the checkbox's width is reduced, and the checkbox isn't square anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the commits to main
that are duplicated in this branch?
I've think I've addressed all issues, except the not showing the red border, I can't reproduce this. |
deb5c7c
to
c6e3b4d
Compare
c6e3b4d
to
aeaba16
Compare
🤦 |
@lkleuver I don't get the red checkbox on the Voters and Votes page, only on the Differences page. |
tweak to icon rendering
To summarize, styles aren't loaded by our testing library currently, we can either load them or focus RTL tests on checking for the correct classes/attributes. Currently I've added the hidden attribute to the section that hides the checkbox. This works and circumvents loading styles. We could also check for the presence of "hidden" on the section, but this couples it a lot to the html structure. |
There is still the 'checkbox remains checked' bug. Reproduction steps:
Styling + other behavior look good to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see last comment
onChange didn't fire, changed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retested the bug I found earlier, has been resolved!
Change checkbox so it has custom styling to allow for error state.
part of #263