-
Notifications
You must be signed in to change notification settings - Fork 353
fix(ButtonGroup): apply fullWidth to root element
#3134
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
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍(Review updated until commit dc68f76)Here are some key observations to aid the review process:
|
rivka-ungar
left a comment
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.
Hi @emmanuel-ferdman, thanks for your contribution.
Please notice that this change is considered a breaking change. The full width seems to work, see here, so it is the actual story of the overview that should be fixed.
Thanks
|
@rivka-ungar Thanks for the guidance! I've updated the PR to fix the Overview story instead of modifying the component. |
…havior Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
157d90f to
dc68f76
Compare
|
@rivka-ungar so, how can we progress from here? |
User description
PR Summary
Previously, toggling the
fullWidthprop in the Storybook Props Table had no visible effect because the Overview story didn't provide a full-width container for the component. This fix updates the Overview story to conditionally wrapButtonGroupin a full-width container whenfullWidth={true}.Resolves #3130.
PR Type
Bug fix
Description
Conditionally wrap ButtonGroup in full-width container when fullWidth prop is true
Remove unused buttonGroupTemplate helper function
Enable proper fullWidth prop visualization in Storybook
Diagram Walkthrough
File Walkthrough
ButtonGroup.stories.tsx
Add conditional full-width wrapper to ButtonGroup storypackages/docs/src/pages/components/ButtonGroup/ButtonGroup.stories.tsx
buttonGroupTemplatehelper with inline render functionfullWidth={true}