-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Frame] Reframe polish: sticky manager and offset (#11945)
### WHY are these changes introduced? Part of [#1470](https://github.com/Shopify/polaris-backlog/issues/1470) ### WHAT is this pull request doing? 1. Accounts for `Frame` offset prop behind `dynamicTopBarAndReframe` project 2. Update `AppProvider` to pass the new reframe scroll container to the `stickyManager` 3. Fixes popover scrolls by wrapping frame content in a `Scrollable` ### How to 🎩 https://admin.web.frame-polish.sophie-schneider.us.spin.dev/store/shop1 1. `Frame` [offset story with feature flag on](https://5d559397bae39100201eedc1-ygmdwznspd.chromatic.com/?path=/story/all-components-frame--with-an-offset&globals=dynamicTopBarAndReframe:!true) 2. Check on s[pin with beta flag on that index tables](https://admin.web.frame-polish.sophie-schneider.us.spin.dev/store/shop1/products/1) are sticking to top of reframe - Scroll to bottom of page to variants and the header should stick, adjust window height 3. Check "Skip to content" button with beta flag off and on 4. Check that popovers scroll with content 5. Check no layout shift for when scrollbar is hidden/shows with scrollbar set to "always" in settings ### 🎩 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
1 parent
995079c
commit b59743a
Showing
5 changed files
with
79 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': patch | ||
--- | ||
|
||
Added offset width to reframe `Frame` and passed reframe scroll container to sticky manager in `AppProvider` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,7 @@ | |
|
||
@media (--p-breakpoints-md-up) { | ||
border-top-right-radius: 0; | ||
padding-top: var(--p-space-400); | ||
} | ||
} | ||
|
||
|