fix(ButtonGroup): apply fullWidth to root element#3134
fix(ButtonGroup): apply fullWidth to root element#3134emmanuel-ferdman wants to merge 2 commits intomondaycom:masterfrom
fullWidth to root element#3134Conversation
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.
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? kind reminder |
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}