This repository was archived by the owner on Sep 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
polaris-tokens/src/themes/base Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @shopify/polaris-tokens ' : minor
3
+ ---
4
+
5
+ Add 0 tokens where missing as per [ the team's decision] ( https://github.com/Shopify/polaris/discussions/7334#discussioncomment-4988991 ) .
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export type BorderRadiusAlias = 'full';
16
16
17
17
export type BorderRadiusAliasOrScale = BorderRadiusAlias | BorderRadiusScale ;
18
18
19
- export type BorderWidthScale = '0165' | '025' | '050' | '100' ;
19
+ export type BorderWidthScale = '0' | ' 0165' | '025' | '050' | '100' ;
20
20
21
21
export type BorderTokenName =
22
22
| `border-radius-${BorderRadiusAliasOrScale } `
@@ -59,6 +59,9 @@ export const border: {
59
59
'border-radius-full' : {
60
60
value : '9999px' ,
61
61
} ,
62
+ 'border-width-0' : {
63
+ value : size [ '0' ] ,
64
+ } ,
62
65
'border-width-0165' : {
63
66
value : size [ '0165' ] ,
64
67
} ,
Original file line number Diff line number Diff line change 1
1
import type { MetaTokenProperties } from '../types' ;
2
2
3
3
export type ZIndexZScale =
4
+ | '0'
4
5
| '1'
5
6
| '2'
6
7
| '3'
@@ -23,6 +24,9 @@ export type ZIndexTokenGroup = {
23
24
export const zIndex : {
24
25
[ TokenName in ZIndexTokenName ] : MetaTokenProperties ;
25
26
} = {
27
+ 'z-index-0' : {
28
+ value : 'auto' ,
29
+ } ,
26
30
'z-index-1' : {
27
31
value : '100' ,
28
32
} ,
You can’t perform that action at this time.
0 commit comments