Skip to content

Commit 622c181

Browse files
lskramarovpimenovoleg
authored andcommitted
fix: after review
1 parent 0ae59be commit 622c181

File tree

1 file changed

+8
-40
lines changed

1 file changed

+8
-40
lines changed

packages/design-tokens/web/components/toast.json5

+8-40
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
},
99
padding: {
1010
left: { value: '{size.m}' },
11-
right: { value: '{size.m}' },
11+
right: { value: '{size.s}' },
1212
}
1313
},
1414
// центральная область, в которой расположены текст и кнопки
1515
content: {
1616
padding: {
1717
top: { value: '{size.l}' },
18-
buttom: { value: '{size.l}' },
18+
bottom: { value: '{size.l}' }
1919
}
2020
},
2121
caption: {
2222
padding: {
23-
top: { value: '{size.xxs}' },
23+
bottom: { value: '{size.xxs}' }
2424
}
2525
},
2626
icon: {
@@ -52,17 +52,13 @@
5252
title: { value: 'text-normal' },
5353
text: { value: 'text-normal' }
5454
},
55-
light: {
55+
'light': {
5656
contrast: {
5757
container: {
5858
background: { value: '{light.background.card}' },
5959
title: { value: '{light.foreground.contrast}' },
6060
text: { value: '{light.foreground.contrast-secondary}' },
6161
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
62-
},
63-
icon: {
64-
background: { value: 'none' },
65-
color: { value: '{light.icon.contrast}' },
6662
}
6763
},
6864
error: {
@@ -71,10 +67,6 @@
7167
title: { value: '{light.foreground.contrast}' },
7268
text: { value: '{light.foreground.contrast-secondary}' },
7369
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
74-
},
75-
icon: {
76-
background: { value: 'none' },
77-
color: { value: '{light.icon.error}' },
7870
}
7971
},
8072
warning: {
@@ -83,10 +75,6 @@
8375
title: { value: '{light.foreground.contrast}' },
8476
text: { value: '{light.foreground.contrast-secondary}' },
8577
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
86-
},
87-
icon: {
88-
background: { value: 'none' },
89-
color: { value: '{light.icon.warning}' },
9078
}
9179
},
9280
success: {
@@ -95,24 +83,16 @@
9583
title: { value: '{light.foreground.contrast}' },
9684
text: { value: '{light.foreground.contrast-secondary}' },
9785
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
98-
},
99-
icon: {
100-
background: { value: 'none' },
101-
color: { value: '{light.icon.success}' },
10286
}
10387
}
10488
},
105-
dark: {
89+
'dark': {
10690
contrast: {
10791
container: {
10892
background: { value: '{dark.background.card}' },
10993
title: { value: '{dark.foreground.contrast}' },
11094
text: { value: '{dark.foreground.contrast-secondary}' },
11195
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
112-
},
113-
icon: {
114-
background: { value: 'none' },
115-
color: { value: '{dark.icon.contrast}' },
11696
}
11797
},
11898
error: {
@@ -121,10 +101,6 @@
121101
title: { value: '{dark.foreground.contrast}' },
122102
text: { value: '{dark.foreground.contrast-secondary}' },
123103
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
124-
},
125-
icon: {
126-
background: { value: 'none' },
127-
color: { value: '{dark.icon.error}' },
128104
}
129105
},
130106
warning: {
@@ -133,10 +109,6 @@
133109
title: { value: '{dark.foreground.contrast}' },
134110
text: { value: '{dark.foreground.contrast-secondary}' },
135111
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
136-
},
137-
icon: {
138-
background: { value: 'none' },
139-
color: { value: '{dark.icon.warning}' },
140112
}
141113
},
142114
success: {
@@ -145,21 +117,17 @@
145117
title: { value: '{dark.foreground.contrast}' },
146118
text: { value: '{dark.foreground.contrast-secondary}' },
147119
shadow: { value: '0px 2px 8px 0px rgba(0, 0, 0, 0.16)'}
148-
},
149-
icon: {
150-
background: { value: 'none' },
151-
color: { value: '{dark.icon.success}' },
152120
}
153121
}
154122
}
155123
},
156124
'toast-stack': {
157125
size: {
158126
margin: {
159-
top: { value: '{size.m}}' },
160-
right: { value: '{size.m}}' }
127+
top: { value: '{size.m}' },
128+
right: { value: '{size.m}' }
161129
},
162-
gap: { value: '{size.s}}' }
130+
gap: { value: '{size.s}' }
163131
}
164132
}
165133
}

0 commit comments

Comments
 (0)