-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Layout foundations] Update SkeletonPage title to have fixed height
#8075
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
Conversation
size-limit report 📦
|
|
/snapit |
|
🫰✨ Thanks @chazdean! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20230118021423yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230118021423yarn add @shopify/polaris@0.0.0-snapshot-release-20230118021423 |
@kyledurand Yeah the alignment definitely looks off. There looks to be |
|
Seeing some horizontal misalignment on the Customers index page
|
@sarahill This issue is present in production as well. Here a custom css skeleton title header is being used causing these differences which will have to be revisited 😕. The orders index page should be good though as it will use our new rebuilt |
6f2906d to
c276c82
Compare
|
/snapit |
|
🫰✨ Thanks @chazdean! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20230119151020yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20230119151020yarn add @shopify/polaris@0.0.0-snapshot-release-20230119151020 |
|
@kyledurand good to go 👍🏾 |
yurm04
left a comment
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.
there are some chromatic diffs that look a bit wonky that might just be the same issue we've been dealing with throughout the batches. Code LGTM, maybe needs one more pass in chromatic for UX review 👍
aveline
left a comment
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.
Chromatic changes need to be reviewed, the change in title heights make sense and need to be accepted, but not sure what's going on with the centering. Otherwise looks good 👍
sarahill
left a comment
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.
A couple of the chromatic diffs look off but look and function as expected in Storybook ✅
…#8075) <!-- ☝️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 - Prefix it with [WIP] while it’s a work in progress --> ### WHY are these changes introduced? Adds consistency to `SkeletonPage` by giving the skeleton title a fixed height regardless if the `primaryAction` prop is being used or not <!-- Context about the problem that’s being addressed. --> ### WHAT is this pull request doing? - Centers the title skeleton by adding `blockStart` and `blockEnd` padding - Increases title height back to `28px` so that with `8px` of extra padding, title container can match the height of the `primaryAction` skeleton at `36px` #### With primaryAction skeleton <img width="1169" alt="Screenshot 2023-01-18 at 8 37 53 AM" src="https://user-images.githubusercontent.com/59836805/213186715-c011be36-398b-4b8e-8172-b842277cc50d.png"> #### Without primaryAction skeleton <img width="1171" alt="Screenshot 2023-01-18 at 8 38 50 AM" src="https://user-images.githubusercontent.com/59836805/213186743-1b3c6d38-4680-458f-a5c3-87206ee89914.png"> <!-- Summary of the changes committed. Before / after screenshots are appreciated for UI changes. Make sure to include alt text that describes the screenshot. If you include an animated gif showing your change, wrapping it in a details tag is recommended. Gifs usually autoplay, which can cause accessibility issues for people reviewing your PR: <details> <summary>Summary of your gif(s)</summary> <img src="..." alt="Description of what the gif shows"> </details> --> <!-- ℹ️ Delete the following for small / trivial changes --> ### How to 🎩 [Spin Link](https://admin.web.web-6n2m.chaz-dean.us.spin.dev/store/shop1/) (Updated) </details> ### 🎩 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?
Adds consistency to
SkeletonPageby giving the skeleton title a fixed height regardless if theprimaryActionprop is being used or notWHAT is this pull request doing?
blockStartandblockEndpadding28pxso that with8pxof extra padding, title container can match the height of theprimaryActionskeleton at36pxWith primaryAction skeleton
Without primaryAction skeleton
How to 🎩
Spin Link (Updated)
🎩 checklist
README.mdwith documentation changes