Skip to content

Commit

Permalink
Manually migrate z-index custom properties from v10 to v11 (#8425)
Browse files Browse the repository at this point in the history
### WHY are these changes introduced?

Part of #8405 <!-- link to issue if one exists -->

### WHAT is this pull request doing?
Finds and replaces any instances of legacy `z-index` custom properties
in non SCSS files with the repalcement map from
[`v11-styles-replace-custom-property-zindex`](#8272)
  • Loading branch information
lgriffee committed Feb 17, 2023
1 parent 6f92bf3 commit c73717c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-carpets-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/polaris': minor
'polaris.shopify.com': minor
---

Manually migrated `z-index` custom properties from `v10` to `v11`
2 changes: 1 addition & 1 deletion polaris-react/src/components/Sheet/Sheet.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export function WithSearchableListbox() {
style={{
padding: 'var(--p-space-4) var(--p-space-2)',
position: 'sticky',
zIndex: 'var(--p-z-12)',
zIndex: 'var(--p-z-index-12)',
width: '100%',
background: 'var(--p-surface)',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function SheetWithSearchableListboxExample() {
style={{
padding: 'var(--p-space-4) var(--p-space-2)',
position: 'sticky',
zIndex: 'var(--p-z-12)',
zIndex: 'var(--p-z-index-12)',
width: '100%',
background: 'var(--p-surface)',
}}
Expand Down

0 comments on commit c73717c

Please sign in to comment.