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 space custom properties from v11 to v12 #10585

Merged
merged 12 commits into from
Sep 25, 2023
Merged

Conversation

laurkim
Copy link
Contributor

@laurkim laurkim commented Sep 20, 2023

WHY are these changes introduced?

Resolves #10535.
Migrates space custom properties from v11 to v12.
This PR includes both automated and manual migrations.

WHAT is this pull request doing?

To migrate space custom properties, the flow was to:

  • Handle automatic migrations

    # Space migration
    npx @shopify/polaris-migrator@0.0.0-snapshot-release-20230918165951 \
    v12-styles-replace-custom-property-space \
    'src/**/*.scss'
    # Stash files with "polaris-migrator:" comments
    git stash push $(grep -r -l "polaris-migrator:" $(git ls-files -m))
    # Stage all migrated files
    git add .
    # Format staged files only
    git diff --staged --name-only | xargs npx prettier --write
    # Commit automated migrations
    git commit -m "Migrate space custom properties from v11 to v12" 
  • Handle manual migrations

    # Bring back the files with "polaris-migrator:" comments
    git stash pop
    • Search for "polaris-migrator:" comments and handle manual migrations
    • Search for and handle manual migrations (e.g. )

    # Stage all manually migrated files 
    git add .
    # Format staged files only
    git diff --staged --name-only | xargs npx prettier --write 
    #  Commit manual migrations
    git commit -m "Manually migrate space custom properties from v11 to v12"
    
  • Check for errors after all custom property migrations are finished

    # Run stylelint against polaris-react
    npx stylelint 'polaris-react/src/**/*.scss'

How to 🎩

Post-migration validation

After migrating use the following RegExp to check for any additional instances of space custom properties across all file types:

Check RegExp for hardcoded space custom properties across all file types
(?:--p-space-05|--p-space-1|--p-space-1_5-experimental|--p-space-2|--p-space-3|--p-space-4|--p-space-5|--p-space-6|--p-space-8|--p-space-10|--p-space-12|--p-space-16|--p-space-20|--p-space-24|--p-space-28|--p-space-32)(?![\w-])
Check RegExp for outdated <Tooltip padding="..." /> props
<Tooltip[^>\w](?:[^>]|\n)*?padding
Check RegExp for outdated <HorizontalGrid gap="..." /> props
<HorizontalGrid[^>\w](?:[^>]|\n)*?gap
Check RegExp for outdated <Box padding="..." /> props
<Box[^>\w](?:[^>]|\n)*?padding
Check RegExp for outdated <Box paddingBlockStart="..." /> props
<Box[^>\w](?:[^>]|\n)*?paddingBlockStart
Check RegExp for outdated <Box paddingBlockEnd="..." /> props
<Box[^>\w](?:[^>]|\n)*?paddingBlockEnd
Check RegExp for outdated <Box paddingInlineStart="..." /> props
<Box[^>\w](?:[^>]|\n)*?paddingInlineStart
Check RegExp for outdated <Box paddingInlineEnd="..." /> props
<Box[^>\w](?:[^>]|\n)*?paddingInlineEnd
Check RegExp for outdated <Box insetBlockStart="..." /> props
<Box[^>\w](?:[^>]|\n)*?insetBlockStart
Check RegExp for outdated <Box insetBlockEnd="..." /> props
<Box[^>\w](?:[^>]|\n)*?insetBlockEnd
Check RegExp for outdated <Box insetInlineStart="..." /> props
<Box[^>\w](?:[^>]|\n)*?insetInlineStart
Check RegExp for outdated <Box insetInlineEnd="..." /> props
<Box[^>\w](?:[^>]|\n)*?insetInlineEnd
Check RegExp for outdated <VerticalStack gap="..." /> props
<VerticalStack[^>\w](?:[^>]|\n)*?gap
Check RegExp for outdated <HorizontalStack gap="..." /> props
<HorizontalStack[^>\w](?:[^>]|\n)*?gap
Check RegExp for outdated <Choice bleed="..." /> props
<Choice[^>\w](?:[^>]|\n)*?bleed
Check RegExp for outdated <Choice bleedBlockStart="..." /> props
<Choice[^>\w](?:[^>]|\n)*?bleedBlockStart
Check RegExp for outdated <Choice bleedBlockEnd="..." /> props
<Choice[^>\w](?:[^>]|\n)*?bleedBlockEnd
Check RegExp for outdated <Choice bleedInlineStart="..." /> props
<Choice[^>\w](?:[^>]|\n)*?bleedInlineStart
Check RegExp for outdated <Choice bleedInlineEnd="..." /> props
<Choice[^>\w](?:[^>]|\n)*?bleedInlineEnd
Check RegExp for outdated <RadioButton bleed="..." /> props
<RadioButton[^>\w](?:[^>]|\n)*?bleed
Check RegExp for outdated <RadioButton bleedBlockStart="..." /> props
<RadioButton[^>\w](?:[^>]|\n)*?bleedBlockStart
Check RegExp for outdated <RadioButton bleedBlockEnd="..." /> props
<RadioButton[^>\w](?:[^>]|\n)*?bleedBlockEnd
Check RegExp for outdated <RadioButton bleedInlineStart="..." /> props
<RadioButton[^>\w](?:[^>]|\n)*?bleedInlineStart
Check RegExp for outdated <RadioButton bleedInlineEnd="..." /> props
<RadioButton[^>\w](?:[^>]|\n)*?bleedInlineEnd
Check RegExp for outdated <Checkbox bleed="..." /> props
<Checkbox[^>\w](?:[^>]|\n)*?bleed
Check RegExp for outdated <Checkbox bleedBlockStart="..." /> props
<Checkbox[^>\w](?:[^>]|\n)*?bleedBlockStart
Check RegExp for outdated <Checkbox bleedBlockEnd="..." /> props
<Checkbox[^>\w](?:[^>]|\n)*?bleedBlockEnd
Check RegExp for outdated <Checkbox bleedInlineStart="..." /> props
<Checkbox[^>\w](?:[^>]|\n)*?bleedInlineStart
Check RegExp for outdated <Checkbox bleedInlineEnd="..." /> props
<Checkbox[^>\w](?:[^>]|\n)*?bleedInlineEnd
Check RegExp for outdated <Stack gap="..." /> props
<Stack[^>\w](?:[^>]|\n)*?gap
Check RegExp for outdated <Grid gap="..." /> props
<Grid[^>\w](?:[^>]|\n)*?gap
Check RegExp for outdated <Grid gapX="..." /> props
<Grid[^>\w](?:[^>]|\n)*?gapX
Check RegExp for outdated <Grid gapY="..." /> props
<Grid[^>\w](?:[^>]|\n)*?gapY
Check RegExp for outdated <Card padding="..." /> props
<Card[^>\w](?:[^>]|\n)*?padding
Check RegExp for outdated <Bleed marginInline="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginInline
Check RegExp for outdated <Bleed marginBlock="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginBlock
Check RegExp for outdated <Bleed marginBlockStart="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginBlockStart
Check RegExp for outdated <Bleed marginBlockEnd="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginBlockEnd
Check RegExp for outdated <Bleed marginInlineStart="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginInlineStart
Check RegExp for outdated <Bleed marginInlineEnd="..." /> props
<Bleed[^>\w](?:[^>]|\n)*?marginInlineEnd

Replacement maps

Deprecated CSS Custom Property Replacement Value
--p-space-05 --p-space-050
--p-space-1 --p-space-100
--p-space-1_5-experimental --p-space-150
--p-space-2 --p-space-200
--p-space-3 --p-space-300
--p-space-4 --p-space-400
--p-space-5 --p-space-500
--p-space-6 --p-space-600
--p-space-8 --p-space-800
--p-space-10 --p-space-1000
--p-space-12 --p-space-1200
--p-space-16 --p-space-1600
--p-space-20 --p-space-2000
--p-space-24 --p-space-2400
--p-space-28 --p-space-2800
--p-space-32 --p-space-3200

🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines

🎩 checklist

@laurkim laurkim self-assigned this Sep 20, 2023
@laurkim laurkim added the 🤖Skip Changelog Causes CI to ignore changelog update check. label Sep 20, 2023
@laurkim laurkim force-pushed the lo/migrate-space-tokens branch 6 times, most recently from 594b55e to 78b0b49 Compare September 20, 2023 19:52
@laurkim laurkim removed the 🤖Skip Changelog Causes CI to ignore changelog update check. label Sep 20, 2023
@laurkim laurkim force-pushed the lo/migrate-space-tokens branch 2 times, most recently from 675d60f to 678aee3 Compare September 20, 2023 20:08
@laurkim laurkim marked this pull request as ready for review September 20, 2023 20:29
@laurkim
Copy link
Contributor Author

laurkim commented Sep 20, 2023

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230920210702
yarn add @shopify/polaris@0.0.0-snapshot-release-20230920210702
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230920210702
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230920210702

@laurkim laurkim changed the title Migrate space custom properties from v11 to v12 Migrate space custom properties from v11 to v12 Sep 21, 2023
@laurkim laurkim marked this pull request as draft September 21, 2023 17:23
@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230921213347
yarn add @shopify/polaris@0.0.0-snapshot-release-20230921213347
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230921213347
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230921213347

@laurkim
Copy link
Contributor Author

laurkim commented Sep 22, 2023

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230922182129
yarn add @shopify/polaris@0.0.0-snapshot-release-20230922182129
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230922182129
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230922182129

Copy link
Member

@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.

Checked over the all the manual migrations and they LGTM! 💯🚢✨🎉 Also quickly checked over the automatic ones and they also look good.

@laurkim
Copy link
Contributor Author

laurkim commented Sep 25, 2023

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20230925125256
yarn add @shopify/polaris@0.0.0-snapshot-release-20230925125256
yarn add @shopify/polaris-tokens@0.0.0-snapshot-release-20230925125256
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20230925125256

Copy link
Contributor

@heyjoethomas heyjoethomas left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

@sarahill sarahill left a comment

Choose a reason for hiding this comment

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

🎉

@laurkim laurkim merged commit 45fc3a0 into main Sep 25, 2023
14 checks passed
@laurkim laurkim deleted the lo/migrate-space-tokens branch September 25, 2023 21:12
laurkim pushed a commit that referenced this pull request Sep 25, 2023
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@11.21.0

### Minor Changes

- [#10585](#10585)
[`45fc3a01f`](45fc3a0)
Thanks [@laurkim](https://github.com/laurkim)! - Migrated `space` custom
properties from `v11` to `v12`

### Patch Changes

- Updated dependencies
\[[`45fc3a01f`](45fc3a0)]:
    -   @shopify/polaris-tokens@7.12.0

## @shopify/polaris-tokens@7.12.0

### Minor Changes

- [#10585](#10585)
[`45fc3a01f`](45fc3a0)
Thanks [@laurkim](https://github.com/laurkim)! - Migrated `space` custom
properties from `v11` to `v12`

## @shopify/stylelint-polaris@14.1.0

### Minor Changes

- [#10585](#10585)
[`45fc3a01f`](45fc3a0)
Thanks [@laurkim](https://github.com/laurkim)! - Migrated `space` custom
properties from `v11` to `v12`

### Patch Changes

- Updated dependencies
\[[`45fc3a01f`](45fc3a0)]:
    -   @shopify/polaris-tokens@7.12.0

## @shopify/polaris-migrator@0.22.7

### Patch Changes

- Updated dependencies
\[[`45fc3a01f`](45fc3a0)]:
    -   @shopify/polaris-tokens@7.12.0
    -   @shopify/stylelint-polaris@14.1.0

## polaris.shopify.com@0.58.0

### Minor Changes

- [#10585](#10585)
[`45fc3a01f`](45fc3a0)
Thanks [@laurkim](https://github.com/laurkim)! - Migrated `space` custom
properties from `v11` to `v12`

### Patch Changes

- Updated dependencies
\[[`45fc3a01f`](45fc3a0)]:
    -   @shopify/polaris@11.21.0
    -   @shopify/polaris-tokens@7.12.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
laurkim added a commit that referenced this pull request Sep 27, 2023
### WHY are these changes introduced?

Forgot to add a changeset when I merged
[this](#10585) into `next`.
AnnaCheba pushed a commit to AnnaCheba/polaris that referenced this pull request Apr 22, 2024
### WHY are these changes introduced?

Resolves Shopify#10535.
Migrates `space` custom properties from `v11` to `v12`. 
This PR includes both automated and manual migrations.

### WHAT is this pull request doing?

To migrate `space` custom properties, the flow was to: 
- Handle automatic migrations
    ```sh
    # Space migration
npx @shopify/polaris-migrator@0.0.0-snapshot-release-20230918165951 \
    v12-styles-replace-custom-property-space \
    'src/**/*.scss'
    # Stash files with "polaris-migrator:" comments
    git stash push $(grep -r -l "polaris-migrator:" $(git ls-files -m))
    # Stage all migrated files
    git add .
    # Format staged files only
    git diff --staged --name-only | xargs npx prettier --write
    # Commit automated migrations
    git commit -m "Migrate space custom properties from v11 to v12" 
    ```
- Handle manual migrations
    ```sh
    # Bring back the files with "polaris-migrator:" comments
    git stash pop
    ```
- Search for "polaris-migrator:" comments and handle manual migrations
- Search for and handle manual migrations (e.g. <Box
padding="1_5_experimental">)
    <br>

    ```sh
    # Stage all manually migrated files 
    git add .
    # Format staged files only
    git diff --staged --name-only | xargs npx prettier --write 
    #  Commit manual migrations
git commit -m "Manually migrate space custom properties from v11 to v12"

    ```
- Check for errors after all custom property migrations are finished
    ```sh
    # Run stylelint against polaris-react
    npx stylelint 'polaris-react/src/**/*.scss'
    ```

### How to 🎩

#### Post-migration validation

After migrating use the following RegExp to check for any additional
instances of `space` custom properties across all file types:

<details>
<summary>Check RegExp for hardcoded <code>space</code> custom properties
across all file types</summary>

```
(?:--p-space-05|--p-space-1|--p-space-1_5-experimental|--p-space-2|--p-space-3|--p-space-4|--p-space-5|--p-space-6|--p-space-8|--p-space-10|--p-space-12|--p-space-16|--p-space-20|--p-space-24|--p-space-28|--p-space-32)(?![\w-])
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Tooltip padding="..."
/&gt;</code> props</summary>

```
<Tooltip[^>\w](?:[^>]|\n)*?padding
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;HorizontalGrid gap="..."
/&gt;</code> props</summary>

```
<HorizontalGrid[^>\w](?:[^>]|\n)*?gap
```
</details>


<details>
<summary>Check RegExp for outdated <code>&lt;Box padding="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?padding
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box paddingBlockStart="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?paddingBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box paddingBlockEnd="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?paddingBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box
paddingInlineStart="..." /&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?paddingInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box paddingInlineEnd="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?paddingInlineEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box insetBlockStart="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?insetBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box insetBlockEnd="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?insetBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box insetInlineStart="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?insetInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Box insetInlineEnd="..."
/&gt;</code> props</summary>

```
<Box[^>\w](?:[^>]|\n)*?insetInlineEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;VerticalStack gap="..."
/&gt;</code> props</summary>

```
<VerticalStack[^>\w](?:[^>]|\n)*?gap
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;HorizontalStack gap="..."
/&gt;</code> props</summary>

```
<HorizontalStack[^>\w](?:[^>]|\n)*?gap
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Choice bleed="..."
/&gt;</code> props</summary>

```
<Choice[^>\w](?:[^>]|\n)*?bleed
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Choice
bleedBlockStart="..." /&gt;</code> props</summary>

```
<Choice[^>\w](?:[^>]|\n)*?bleedBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Choice bleedBlockEnd="..."
/&gt;</code> props</summary>

```
<Choice[^>\w](?:[^>]|\n)*?bleedBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Choice
bleedInlineStart="..." /&gt;</code> props</summary>

```
<Choice[^>\w](?:[^>]|\n)*?bleedInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Choice bleedInlineEnd="..."
/&gt;</code> props</summary>

```
<Choice[^>\w](?:[^>]|\n)*?bleedInlineEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;RadioButton bleed="..."
/&gt;</code> props</summary>

```
<RadioButton[^>\w](?:[^>]|\n)*?bleed
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;RadioButton
bleedBlockStart="..." /&gt;</code> props</summary>

```
<RadioButton[^>\w](?:[^>]|\n)*?bleedBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;RadioButton
bleedBlockEnd="..." /&gt;</code> props</summary>

```
<RadioButton[^>\w](?:[^>]|\n)*?bleedBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;RadioButton
bleedInlineStart="..." /&gt;</code> props</summary>

```
<RadioButton[^>\w](?:[^>]|\n)*?bleedInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;RadioButton
bleedInlineEnd="..." /&gt;</code> props</summary>

```
<RadioButton[^>\w](?:[^>]|\n)*?bleedInlineEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Checkbox bleed="..."
/&gt;</code> props</summary>

```
<Checkbox[^>\w](?:[^>]|\n)*?bleed
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Checkbox
bleedBlockStart="..." /&gt;</code> props</summary>

```
<Checkbox[^>\w](?:[^>]|\n)*?bleedBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Checkbox
bleedBlockEnd="..." /&gt;</code> props</summary>

```
<Checkbox[^>\w](?:[^>]|\n)*?bleedBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Checkbox
bleedInlineStart="..." /&gt;</code> props</summary>

```
<Checkbox[^>\w](?:[^>]|\n)*?bleedInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Checkbox
bleedInlineEnd="..." /&gt;</code> props</summary>

```
<Checkbox[^>\w](?:[^>]|\n)*?bleedInlineEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Stack gap="..."
/&gt;</code> props</summary>

```
<Stack[^>\w](?:[^>]|\n)*?gap
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Grid gap="..." /&gt;</code>
props</summary>

```
<Grid[^>\w](?:[^>]|\n)*?gap
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Grid gapX="..."
/&gt;</code> props</summary>

```
<Grid[^>\w](?:[^>]|\n)*?gapX
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Grid gapY="..."
/&gt;</code> props</summary>

```
<Grid[^>\w](?:[^>]|\n)*?gapY
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Card padding="..."
/&gt;</code> props</summary>

```
<Card[^>\w](?:[^>]|\n)*?padding
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed marginInline="..."
/&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginInline
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed marginBlock="..."
/&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginBlock
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed
marginBlockStart="..." /&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginBlockStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed marginBlockEnd="..."
/&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginBlockEnd
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed
marginInlineStart="..." /&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginInlineStart
```
</details>

<details>
<summary>Check RegExp for outdated <code>&lt;Bleed marginInlineEnd="..."
/&gt;</code> props</summary>

```
<Bleed[^>\w](?:[^>]|\n)*?marginInlineEnd
```
</details>

#### Replacement maps

| Deprecated CSS Custom Property   | Replacement Value |
| ---------------- | ----------------- |
| `--p-space-05` | `--p-space-050` | 
| `--p-space-1` | `--p-space-100` | 
| `--p-space-1_5-experimental` | `--p-space-150` | 
| `--p-space-2` | `--p-space-200` | 
| `--p-space-3` | `--p-space-300` |
| `--p-space-4` | `--p-space-400` | 
| `--p-space-5` | `--p-space-500` | 
| `--p-space-6` | `--p-space-600` | 
| `--p-space-8` | `--p-space-800` | 
| `--p-space-10` | `--p-space-1000` | 
| `--p-space-12` | `--p-space-1200` | 
| `--p-space-16` | `--p-space-1600` | 
| `--p-space-20` | `--p-space-2000` | 
| `--p-space-24` | `--p-space-2400` | 
| `--p-space-28` | `--p-space-2800` | 
| `--p-space-32` | `--p-space-3200` | 

🖥 [Local development
instructions](https://github.com/Shopify/polaris/blob/main/README.md#local-development)
🗒 [General tophatting
guidelines](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md)
📄 [Changelog
guidelines](https://github.com/Shopify/polaris/blob/main/.github/CONTRIBUTING.md#changelog)

### 🎩 checklist

- [x] Tested on
[mobile](https://github.com/Shopify/polaris/blob/main/documentation/Tophatting.md#cross-browser-testing)
- [x] 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
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.

Run space migration in polaris
4 participants