-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IndexTable] consolidate se23 styles and logic #10340
Conversation
8b65f8d
to
42c41bd
Compare
6e291a9
to
b70302c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice clean up! 🚀 🙌
Small things I noticed while tophatting below otherwise everything looked good across different breakpoints. Some of the IndexFilters issues I can create a separate issue for though, if we don't want to conflate the scope of this PR.
-
content jumps to keep table headers visible for BulkActions unlike prod (stories with BulkActions)
-
spacing around IndexFilters is a bit off when comparing to prod — 8px top/bottom on prod as opposed to 6px on this branch (With Filtering story)
-
bg color on hover for table row with zebra striping is off (With Zebra Striping story)
-
When BulkActions are visible, header wrapper is missing right side padding for xs screen (With Bulk Actions and Selections Across Pages story)
prod:
- With Filtering example has larger height on filters and extra padding around actions for xs screen
- IndexFilters has larger height than prod on xs screen (Small Screen With All Of Its Elements story)
b70302c
to
3ccc3d6
Compare
Thnx for the review @laurkim Fixed!
Having a hard time replicating this, looks to be 6px vertical padding in prod as well, let me know if I'm missing something 🙏 This looks to be a specificity bug on prod and not intended behaviour
Fixed!
Small fix to IndexFilter which I've added to this PR 👍
Had a hard time replicating this one, seeing the same height on prod and on local , let me know what I'm missing. Since this is IndexFilter specific though, may fix this in a separate PR. |
3ccc3d6
to
e9e0d60
Compare
} | ||
|
||
.TableCell-first + .TableCell { | ||
// stylelint-disable-next-line -- generated by polaris-migrator DO NOT COPY | ||
left: var(--pc-checkbox-offset); | ||
padding-left: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where'd this one go? I can't see it being set anywhere.
I think it's there to ensure there's no accidental extra padding between the sticky first column and the second column when horizontal scrolling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this, because it was causing unwanted layout shift on sticky
Tested this quite a bit, whatever was causing the extra padding no longer exists so I removed this to resolve the prior layout shift bug.
7ca1f61
to
5f1e9ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tysm for resolving flagged issues, looks good now when tophatting locally 🙌 💯
Thnx for the review @laurkim
- spacing around IndexFilters is a bit off when comparing to prod — 8px top/bottom on prod as opposed to 6px on this branch (With Filtering story)
Having a hard time replicating this, looks to be 6px vertical padding in prod as well, let me know if I'm missing something 🙏
IndexFilters has larger height than prod on xs screen (Small Screen With All Of Its Elements story)
Had a hard time replicating this one, seeing the same height on prod and on local
57px
, let me know what I'm missing. Since this is IndexFilter specific though, may fix this in a separate PR.
For IndexFilters padding, I'm still seeing 8px all around on prod storybook for main and next branches 🤔 Same with height issue on IndexFilters for Small Screen With All Of Its Elements
story where if you change the breakpoint to xs screen, the height on IndexFiltersWrapper
is 49px on prod but 57px for local. I think these 2 remaining issues aren't a blocker for this PR though and can be resolved in a separate one since they seem to be IndexFilters specific 👍
5f1e9ac
to
0700c14
Compare
Fixes #9939 - `IndexTable` consolidate se23 logic - `IndexTable` consolidate se23 styles - [Storybook](https://5d559397bae39100201eedc1-jsgyqvgaeb.chromatic.com/?path=/story/all-components-indextable--with-all-of-its-elements) - [Production storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-indextable--with-all-of-its-elements&globals=polarisSummerEditions2023:true) - [ ] 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
### WHY are these changes introduced? Fixes Shopify#9939 ### WHAT is this pull request doing? - `IndexTable` consolidate se23 logic - `IndexTable` consolidate se23 styles ### How to 🎩 - [Storybook](https://5d559397bae39100201eedc1-jsgyqvgaeb.chromatic.com/?path=/story/all-components-indextable--with-all-of-its-elements) - [Production storybook](https://storybook.polaris.shopify.com/?path=/story/all-components-indextable--with-all-of-its-elements&globals=polarisSummerEditions2023:true) ### 🎩 checklist - [ ] 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
WHY are these changes introduced?
Fixes #9939
WHAT is this pull request doing?
IndexTable
consolidate se23 logicIndexTable
consolidate se23 stylesHow to 🎩
🎩 checklist
README.md
with documentation changes