Skip to content

Conversation

@alex-page
Copy link
Member

@alex-page alex-page commented Apr 19, 2023

  • Update polaris.shopify.com docs
  • Add new token group space
  • Update types to remove Spacing and duplicate SpacingSpace
  • Replace usage of spacing with space in tsx
  • Does not touch scss as the token names are the exact same

@github-actions
Copy link
Contributor

github-actions bot commented Apr 19, 2023

size-limit report 📦

Path Size
polaris-react-cjs 240.61 KB (+0.02% 🔺)
polaris-react-esm 156.76 KB (+0.01% 🔺)
polaris-react-esnext 218.97 KB (+0.01% 🔺)
polaris-react-css 47.24 KB (+0.02% 🔺)

@alex-page alex-page force-pushed the rename-spacing-to-space branch from e98ddc2 to 22aa54a Compare April 19, 2023 05:17
@alex-page alex-page changed the title Rename spacing tokens to space Add new Space tokens and types to replace spacing in v11 Apr 19, 2023
@alex-page alex-page changed the title Add new Space tokens and types to replace spacing in v11 Add new token group "space" to replace spacing in v11 Apr 19, 2023
@alex-page alex-page force-pushed the rename-spacing-to-space branch from d649b88 to 244c643 Compare April 19, 2023 05:40
@lgriffee lgriffee self-requested a review April 19, 2023 23:42
Copy link
Contributor

@lgriffee lgriffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I added some additional spacing updates and I think you should be good to go! Also noticed two polaris.shopify.com/scripts/tmp files sneak in and wasn't sure if that was intentional?

@alex-page
Copy link
Member Author

polaris.shopify.com/scripts/tmp SNEAKY! I'll be sure to eradicate them. Thanks @lgriffee

@lgriffee
Copy link
Contributor

Going to add a redirect for the new polaris.shopify.com page in next.config.js. After this ships just want to make a note we need to remember to remove the spacing token group from the PR in v11.

@lgriffee
Copy link
Contributor

Oh we also need redirects for all the stylelint pages! Going to add that too before this ships 👍🏻

@lgriffee
Copy link
Contributor

Redirects aren't working in localhost. Looks like I forgot to add the new groups. Don't ship this yet.

@lgriffee
Copy link
Contributor

lgriffee commented Apr 20, 2023

Fixed the redirects so they work on localhost! Also it looks like anchor link redirects don't work so I removed it.

@lgriffee lgriffee merged commit a47e908 into main Apr 20, 2023
@lgriffee lgriffee deleted the rename-spacing-to-space branch April 20, 2023 18:08
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
- [x] Update polaris.shopify.com docs
- [x] Add new token group `space`
- [x] Update types to remove `Spacing` and duplicate `SpacingSpace`
- [x] Replace usage of `spacing` with `space` in tsx
- [x] Does not touch scss as the token names are the exact same

---------

Co-authored-by: Laura Griffee <laura@mailzone.com>
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
- [x] Update polaris.shopify.com docs
- [x] Add new token group `space`
- [x] Update types to remove `Spacing` and duplicate `SpacingSpace`
- [x] Replace usage of `spacing` with `space` in tsx
- [x] Does not touch scss as the token names are the exact same

---------

Co-authored-by: Laura Griffee <laura@mailzone.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants