-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(checkbox): move padding to label instead of checkbox #5463
fix(checkbox): move padding to label instead of checkbox #5463
Conversation
Deploy preview for carbon-elements ready! Built with commit 1bd6a22 |
Deploy preview for carbon-components-react ready! Built with commit 1bd6a22 https://deploy-preview-5463--carbon-components-react.netlify.com |
How about this instead @tw15egan so that space is still reserved How about this instead .bx--checkbox-label { .bx--checkbox-label-text { I have updated https://codesandbox.io/s/peaceful-dawn-k9dpj with .fixed-it class |
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.
will you be splitting the padding between the label and label text?
@emyarod Yes, just updated 👍 |
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.
Looks good to me
Closes #5461
Removes padding on the checkbox, and places it on the label so it only appears if the label is present.
Changelog
Changed
padding-left
fromcheckbox-label
tocheckbox-label-text
Testing / Reviewing
Ensure Checkbox still looks the same visually, and that nothing moves when
hideLabel
knob is checked.