-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ToggleGroupControl: Decouple borderless style with icon use #43771
Conversation
Size Change: -1 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
Thank you. Some of the precise usage is likely going to continue to evolve a little bit as we update the inspectors across all blocks (still a lot of work to do), so it seems fine to keep the docs and props up to date as we stabilize 🙏 |
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 changes LGTM.
I'm not particularly a fan of prop names that very descriptive rather than semantic, but I understand that this may be a temporary change while we assess how the border vs borderless solutions feel like.
Personally, I'd vote for always showing borders and getting rid of the borderless prop, as I believe that borderless togglegroups can look a bit confusing to the user.
What?
__experimentalIsIconGroup
to__experimentalIsBorderless
.Why?
We're seeing use cases of icon button toggles that are not using the borderless style (#37930, #43674). After confirming with @jasmussen that this is intentional, we've decided to remove any documentation suggesting that icon button toggles should use the borderless style. This should keep our docs truthful until a clearer style guide is established down the line.
Testing Instructions
npm run storybook:dev