Skip to content

Commit 89f3150

Browse files
rmnturovRoman TurovNikGurev
authored
Warning state for Icon Item (#DS-1842) (#9)
--------- Co-authored-by: Roman Turov <[email protected]> Co-authored-by: Nikita Guryev <[email protected]>
1 parent 5252f0a commit 89f3150

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

packages/design-tokens/web/components/icon-item.json5

+16-8
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,53 @@
33
light: {
44
theme: {
55
color: { value: '{light.foreground.white}' },
6-
background: { value: '{light.icon.theme}' },
6+
background: { value: '{light.background.theme}' },
77
},
88
contrast: {
99
color: { value: '{light.foreground.white}' },
10-
background: { value: '{light.icon.contrast}' },
10+
background: { value: '{light.background.contrast}' },
1111
},
1212
'fade-contrast': {
1313
color: { value: '{light.foreground.contrast}' },
1414
background: { value: '{light.background.contrast-fade}' },
1515
},
1616
error: {
1717
color: { value: '{light.foreground.white}' },
18-
background: { value: '{light.icon.error}' },
18+
background: { value: '{light.background.error}' },
19+
},
20+
warning: {
21+
color: { value: '{light.foreground.white}' },
22+
background: { value: '{light.background.warning}' },
1923
},
2024
success: {
2125
color: { value: '{light.foreground.white}' },
22-
background: { value: '{light.icon.success}' },
26+
background: { value: '{light.background.success}' },
2327
}
2428
},
2529
dark: {
2630
theme: {
2731
color: { value: '{dark.foreground.white}' },
28-
background: { value: '{dark.icon.theme}' },
32+
background: { value: '{dark.background.theme}' },
2933
},
3034
contrast: {
3135
color: { value: '{dark.icon.on-contrast}' },
32-
background: { value: '{dark.icon.contrast}' },
36+
background: { value: '{dark.background.contrast}' },
3337
},
3438
'fade-contrast': {
3539
color: { value: '{dark.foreground.contrast}' },
3640
background: { value: '{dark.background.contrast-fade}' },
3741
},
3842
error: {
3943
color: { value: '{dark.foreground.white}' },
40-
background: { value: '{dark.icon.error}' },
44+
background: { value: '{dark.background.error}' },
45+
},
46+
warning: {
47+
color: { value: '{dark.foreground.white}' },
48+
background: { value: '{dark.background.warning}' },
4149
},
4250
success: {
4351
color: { value: '{dark.foreground.white}' },
44-
background: { value: '{dark.icon.success}' },
52+
background: { value: '{dark.background.success}' },
4553
}
4654
},
4755
size: {

0 commit comments

Comments
 (0)