Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frame] Only add rounded styles when
topBar
exists (#11925)
<!-- ☝️How to write a good PR title: - Prefix it with [ComponentName] (if applicable), for example: [Button] - Start with a verb, for example: Add, Delete, Improve, Fix… - Give as much context as necessary and as little as possible - Open it as a draft if it’s a work in progress --> ### WHY are these changes introduced? Fixes https://github.com/Shopify/polaris-internal/issues/1598 ### WHAT is this pull request doing? Only applies rounded frame styles when the `Frame` component has a `topBar` prop ### How to 🎩 For `WithoutATopBar`, make sure [story](https://5d559397bae39100201eedc1-agsvebvhin.chromatic.com/?path=/story/all-components-frame--without-a-top-bar) is the same with feature flag on and off https://admin.web.web-81d9.sophie-schneider.us.spin.dev/store/shop1 ### 🎩 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)
- Loading branch information