Skip to content

Commit

Permalink
[InlineError] Manually migrate color custom properties for v11 to v…
Browse files Browse the repository at this point in the history
…12 (#10714)

### WHY are these changes introduced?

Resolves #10391.

### WHAT is this pull request doing?

Manually migrates `InlineError` component `color` custom properties.
    <details>
      <summary>InlineError — before</summary>
<img
src="https://github.com/Shopify/polaris/assets/26749317/f9f2ea44-f058-4ef0-9c35-71017ca7f6fe"
alt="InlineError — before">
    </details>
    <details>
      <summary>InlineError — after</summary>
<img
src="https://github.com/Shopify/polaris/assets/26749317/4cb1f673-6c1a-4dc4-8c10-28c2b904339c"
alt="InlineError — after">
    </details>

### How to 🎩


[Storybook](https://5d559397bae39100201eedc1-uoggaugpto.chromatic.com/?path=/story/all-components-inlineerror--default)
[Next branch
storybook](https://5d559397bae39100201eedc1-iqlmktwkqx.chromatic.com/?path=/story/all-components-inlineerror--default)

🖥 [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
  • Loading branch information
laurkim authored Sep 27, 2023
1 parent a3c9bfa commit 48ca178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polaris-react/src/components/InlineError/InlineError.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
.InlineError {
display: flex;
color: var(--p-color-text-critical);
fill: var(--p-color-icon-critical);
fill: var(--p-color-text-critical);
}

.Icon {
fill: var(--p-color-icon-critical);
fill: var(--p-color-text-critical);
margin-left: calc(-1 * var(--p-space-050));
margin-right: var(--p-space-200);

Expand Down

0 comments on commit 48ca178

Please sign in to comment.