-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Box] Use logical properties and use single custom property where possible #7534
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 📦
|
450d4e5 to
5fa7c85
Compare
ba9c438 to
8635321
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.
I think this would be a major change, not patch.
Because we're changing the prop names, all the places that use Box in this repo (and subsequently Shopify/web when this is released) will have to be updated to use the new prop names.
|
I think it's ok to break alpha component props in non major releases, that's why we created the alpha status for |
Still an Alpha component so okay to change props in non-major release
laurkim
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.
💯
Changes lgtm, just needs a small update to the AlphaCard.test.tsx file for the failing node check 👍
laurkim
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.
Tophatted and lgtm 💯
I think we'd just need to merge the version packages PR after this so that the style guide has the updated styling.
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.
Nice! I noticed it's missing a Box.stories.tsx file. Maybe we should add one?
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @shopify/polaris@10.10.0 ### Minor Changes - [#7538](#7538) [`a595fa3ca`](a595fa3) Thanks [@laurkim](https://github.com/laurkim)! - Added responsive styling to `Text` for `heading2xl`, `heading3xl`, and `heading4xl` variants - [#7546](#7546) [`e5f84f0eb`](e5f84f0) Thanks [@laurkim](https://github.com/laurkim)! - Added responsive styling to the `Text` `headingXl` and `headingLg` variants ### Patch Changes - [#7534](#7534) [`e53f7901c`](e53f790) Thanks [@kyledurand](https://github.com/kyledurand)! - Update box to use logical properties, condense single value into single custom property ## @shopify/plugin-polaris@0.0.14 ## polaris-for-figma@0.0.27 ### Patch Changes - Updated dependencies \[[`e53f7901c`](e53f790), [`a595fa3ca`](a595fa3), [`e5f84f0eb`](e5f84f0)]: - @shopify/polaris@10.10.0 ## polaris.shopify.com@0.23.2 ### Patch Changes - [#7544](#7544) [`af478626d`](af47862) Thanks [@martenbjork](https://github.com/martenbjork)! - Fixes an issue that caused the reduced-motion fallback to appear broken on the home page. - Updated dependencies \[[`e53f7901c`](e53f790), [`a595fa3ca`](a595fa3), [`e5f84f0eb`](e5f84f0)]: - @shopify/polaris@10.10.0 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This change reduces markup for the following properties:
Markup before:

Markup after:

Make sure to 🎩 with nested elements
Box playground