-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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(radio-button): margin bug fix #7133
fix(radio-button): margin bug fix #7133
Conversation
Deploy preview for carbon-elements ready! Built with commit 6a018f1 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 6a018f1 https://deploy-preview-7133--carbon-components-react.netlify.app |
@andreancardona if I understand this issue, it's that the box-shadow bleeds over the box model of the radio button? Just wanted to confirm 👀 |
Yep! Let me know if there is a better way to solve for it |
@andreancardona this makes me think about the focus style itself, I'm curious if the shadow should be inset then instead? Would require a sync with design but it seems like our focus styles should probably stay scoped inside of the container instead of growing otherwise we do have to add in some extra spacing to accommodate for it 🤔 |
Yeah that makes a lot more sense. What is the best next step then in this situation? |
packages/components/src/components/radio-button/_radio-button.scss
Outdated
Show resolved
Hide resolved
…scss Co-authored-by: Josh Black <josh@josh.black>
bump @dakahn if you have a sec to review today |
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.
seems cool to me, pending @tw15egan 's questions
This reverts commit 5e9b3fc.
Closes #7113
added a margin around radio button to fix truncation bug
Changelog
New
0.25 rem to margin-top & margin-bottom
around radio-buttonTesting / Reviewing
Go to: https://deploy-preview-7133--carbon-components-react.netlify.app/?path=/story/radiobutton--default
add border & overflow around radio-button
bx--radio-button__label
as seen belowborder: 10px solid red;
overflow: hidden;
make sure radio-button's focus state is not cut off / truncated