-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix(styles): fix overflow styling on Radio Group and Checkbox and align styles with Pattern Library #1110
Conversation
Preview branch generated at https://radio-group-wrap.d1gko6en628vir.amplifyapp.com |
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.
After a quick zoom meeting with @yhafez and @dequelabs/cauldron-design, we settled on the following:
|
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.
Good work! Just a few nits to fix.
Update from @dequelabs/cauldron-design
|
Co-authored-by: Jason <[email protected]>
Co-authored-by: Jason <[email protected]>
@yhafez here are my observations... checkbox dark theme:
checkbox light theme:
radio dark theme:
radio light theme:
current implementation with
|
I already sent these changes to @yhafez but wanted to document them here as well for a 2nd PR review... Checkboxes
Radios
Radio with long descriptionRadio with short description |
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.
Looking good! Just a last few code changes needed.
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.
Code LGTM, 2 questions. Let's get @dequelabs/cauldron-design to give a thumbs up too.
Co-authored-by: Jason <[email protected]>
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.
Good work @yhafez!
Preview branch generated at https://radio-group-wrap.d1gko6en628vir.amplifyapp.com |
border-top: 1px solid var(--field-error-border-color); | ||
text-align: left; | ||
font-size: var(--text-size-smallest); | ||
font-weight: var(--font-weight-normal); | ||
padding-left: var(--space-half); | ||
font-size: var(--text-size-smallest); | ||
margin-top: var(--space-half); | ||
margin-left: calc(var(--icon-size) + 2px + var(--space-half)); | ||
padding: var(--space-half) 0; |
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.
@yhafez This is the change that is doing this.
Closes #627
Relates to #949
Relates to #1034
Relates to Walnut #5739
Current behavior:
https://github.com/dequelabs/cauldron/assets/60084578/b94f6133-0c7c-4368-9277-6736618301f9
With .Checkbox, .Radio

flexwrap
changed tonowrap
:https://github.com/dequelabs/cauldron/assets/60084578/ee399c8d-88c7-4b37-be61-2e2b4403bb21
w/ 4th option under wrapping line:
https://github.com/dequelabs/cauldron/assets/60084578/4dbaa581-63a3-41e5-9a02-d0033e09c6e0
With .Checkbox, .Radio

flexwrap
changed tonowrap
and .Radio__overlay givenalign-self
offlex-start
(implemented):https://github.com/dequelabs/cauldron/assets/60084578/6142d258-e011-451f-9427-bff88b6bcee9
w/ 4th option under wrapping line:
https://github.com/dequelabs/cauldron/assets/60084578/fbe68121-6973-4831-af4b-12316976020d