Skip to content
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

Migrate --p-space-0 tokens in SCSS files to 0 #8356

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

lgriffee
Copy link
Member

@lgriffee lgriffee commented Feb 14, 2023

WHY are these changes introduced?

While our team has decided to keep the --p-space-0 token in our system we don't need to be using it to replace unitless zero values.

WHAT is this pull request doing?

Runs the styles-replace-custom-property migration from @shopify/polaris-migrator to replace any instances of --p-space-0 with 0 in polaris-react Sass files. e.g.

npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl="/.+/" --from="--p-space-0" --to="0" '../polaris-react/src/**/*.scss'

@lgriffee lgriffee self-assigned this Feb 14, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2023

size-limit report 📦

Path Size
polaris-react-cjs 220.35 KB (0%)
polaris-react-esm 140.12 KB (0%)
polaris-react-esnext 196.04 KB (-0.02% 🔽)
polaris-react-css 42.43 KB (-0.03% 🔽)

@lgriffee lgriffee force-pushed the migrate-v11-legacy-custom-properties branch from aa432ca to 3f46653 Compare February 17, 2023 19:29
@lgriffee lgriffee changed the title Run @shopify/polaris-migrator to replace legacy v11 custom properties Migrate --p-space-0 tokens in SCSS files to 0 Feb 17, 2023
@lgriffee lgriffee marked this pull request as ready for review February 17, 2023 22:04
@lgriffee lgriffee merged commit 6f92bf3 into main Feb 17, 2023
@lgriffee lgriffee deleted the migrate-v11-legacy-custom-properties branch February 17, 2023 22:57
juzser pushed a commit to juzser/polaris that referenced this pull request Jul 27, 2023
### WHY are these changes introduced?

While our team has decided to keep the `--p-space-0` token in our system
we don't need to be using it to replace unitless zero values.

### WHAT is this pull request doing?

Runs the `styles-replace-custom-property` migration from
`@shopify/polaris-migrator` to replace any instances of `--p-space-0`
with `0` in `polaris-react` Sass files. e.g.

```sh
npx @shopify/polaris-migrator styles-replace-custom-property \
  --decl="/.+/" --from="--p-space-0" --to="0" '../polaris-react/src/**/*.scss'
```
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