-
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
Adds horizontal variant in CheckboxGroup #16583
Adds horizontal variant in CheckboxGroup #16583
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Nice work, @2nikhiltom! 🔥
Just a small question:
Would it be possible to add a prop for a horizontal checkbox? This way, we could include it in the Playground state also and better interact with the horizontal checkbox in different states (warning, error, disabled, etc).
@Kritvi-bhatia17 ! Yeah good catch |
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.
LGTM 🚀
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.
LGTM Nikhil from design perspective! 🎉
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.
Awesome, looks great after those small changes 🚀
Awesome!! Thanks for looking into this @alisonjoseph 💯 |
89907da
Closes #16486
Adds horizontal variant in CheckboxGroup
Changelog
New
orientation
optional prop (reference from RadioButtonGroup)orientation
to playgroundorientation
is set tohorizontal
The parent
<fieldset>
usesdisplay: flex
for horizontal alignment, causing issues with the alignment of the warning messages.To avoid breaking changes in the DOM structure, class usage and styles , I have applied
position: absolute
to the warning message<div>
to ensure it appears correctly below the<fieldset>
.Testing / Reviewing
Open deploy preview and navigate to CheckboxGroup story to verify if horizontal variant is working good.
Also verify
orientation
prop working in playground