Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### WHY are these changes introduced? Resolves [#1382](https://github.com/Shopify/polaris-internal/issues/1382). ### WHAT is this pull request doing? Fixes width for Button inside a `ButtonGroup` where `fullWidth` prop is applied. <details> <summary>ButtonGroup — before</summary> <img src="https://github.com/Shopify/polaris/assets/26749317/f8bff26b-9246-44d0-81ae-39f6a69f5e02" alt="ButtonGroup — before"> </details> <details> <summary>ButtonGroup — after</summary> <img src="https://github.com/Shopify/polaris/assets/26749317/3b58d993-dd1a-476f-9200-3650a1fcbd98" alt="ButtonGroup — after"> </details> Fixes overlapping focus styles when Button rendered as a child of Tooltip. <details> <summary>Tooltip focused — before</summary> <img src="https://github.com/Shopify/polaris/assets/26749317/85a249e6-1a24-4a4c-8225-0ef3d7e9aba8" alt="Tooltip focused — before"> </details> <details> <summary>Tooltip focused — after</summary> <img src="https://github.com/Shopify/polaris/assets/26749317/3b871c74-11e6-45b1-8c5d-7c9f4f7cfcf5" alt="Tooltip focused — after"> </details> ### How to 🎩 [Spin](https://admin.web.segmented-button-fix.lo-kim.us.spin.dev/store/shop1/settings/branding) [Full width buttons — prod](https://storybook.polaris.shopify.com/?path=/story/all-components-tooltip--visible-only-with-child-interaction) [Full width buttons — pr](https://5d559397bae39100201eedc1-fxudyneyuk.chromatic.com/?path=/story/all-components-tooltip--visible-only-with-child-interaction) [Overlapping focus styles — prod](https://storybook.polaris.shopify.com/?path=/story/all-components-tooltip--with-suffix) [Overlapping focus styles — pr](https://5d559397bae39100201eedc1-fxudyneyuk.chromatic.com/?path=/story/all-components-tooltip--with-suffix) [ButtonGroup segmented - pr](https://5d559397bae39100201eedc1-fxudyneyuk.chromatic.com/?path=/story/all-components-buttongroup--with-segmented-buttons) 🖥 [Local development instructions](https://github.com/Shopify/polaris/blob/main/README.md#install-dependencies-and-build-workspaces) 🗒 [General tophatting guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md) 📄 [Changelog guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog) ### 🎩 checklist - [x] Tested a [snapshot](https://github.com/Shopify/polaris/blob/main/documentation/Releasing.md#-snapshot-releases) - [x] Tested on [mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing) - [x] Tested on [multiple browsers](https://help.shopify.com/en/manual/shopify-admin/supported-browsers) - [ ] Tested for [accessibility](https://github.com/Shopify/polaris/blob/main/documentation/Accessibility%20testing.md) - [ ] Updated the component's `README.md` with documentation changes - [ ] [Tophatted documentation](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting%20documentation.md) changes in the style guide --------- Co-authored-by: Chloe Rice <[email protected]> Co-authored-by: Sam Rose <[email protected]>
- Loading branch information