-
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.
[indexTable] fix for overscroll issue with when last header has `alig…
…nment='end'` (#11885) ### WHY are these changes introduced? Fixes #11852 <!-- link to issue if one exists --> When adding an `alignment:"end"` to the last element of the heading array it was causing a visible gap to occur on the right of the table heading when scrolling right (as seen below) ![Screenshot 2024-04-11 at 17 17 44](https://github.com/Shopify/polaris/assets/37420719/f80448ef-ce0e-44b5-b40f-247f77797a46) ### WHAT is this pull request doing? This fixes the gap by applying `overflow-x:hidden` in the styles that control the heading that had the gap **before** ![Screenshot 2024-04-11 at 17 17 44](https://github.com/Shopify/polaris/assets/37420719/4ff75683-e0d6-4c27-aae5-73fd7eee4c30) **after** ![Screenshot 2024-04-11 at 17 20 46](https://github.com/Shopify/polaris/assets/37420719/ce89a95c-3b75-4504-901e-3272a8dea65e) ### How to 🎩 🖥 [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) You can view the fix for this in storybook by going to the newly added section "With Sortable Headings Last Element Alignment End" ![Screenshot 2024-04-11 at 17 23 18](https://github.com/Shopify/polaris/assets/37420719/a359e77e-21eb-4e64-8c89-ca9965a58ec6) ### 🎩 checklist - [ ] Tested a [snapshot](https://github.com/Shopify/polaris/blob/main/documentation/Releasing.md#-snapshot-releases) - [ ] Tested on [mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing) - [ ] 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
- Loading branch information
1 parent
46d5c63
commit af80d3a
Showing
3 changed files
with
197 additions
and
0 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 | ||
--- | ||
|
||
[indexTable] Fixed over scroll gap on `IndexTable` for sortable last headings with `alignment="end"` |
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