@cloudscape-design/components-themeable 3.0.1186 → 3.0.1188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/components/selectable-item/styles.scss +155 -109
  3. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  4. package/lib/internal/scss/slider/mixins.scss +26 -10
  5. package/lib/internal/scss/slider/styles.scss +52 -16
  6. package/lib/internal/template/internal/base-component/styles.scoped.css +65 -18
  7. package/lib/internal/template/internal/components/selectable-item/styles.css.js +22 -23
  8. package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +83 -116
  9. package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +22 -23
  10. package/lib/internal/template/internal/environment.js +2 -2
  11. package/lib/internal/template/internal/environment.json +2 -2
  12. package/lib/internal/template/internal/generated/styles/tokens.d.ts +8 -2
  13. package/lib/internal/template/internal/generated/styles/tokens.js +8 -2
  14. package/lib/internal/template/internal/generated/theming/index.cjs +234 -48
  15. package/lib/internal/template/internal/generated/theming/index.js +234 -48
  16. package/lib/internal/template/internal/hooks/use-virtual/index.d.ts.map +1 -1
  17. package/lib/internal/template/internal/hooks/use-virtual/index.js +6 -1
  18. package/lib/internal/template/internal/hooks/use-virtual/index.js.map +1 -1
  19. package/lib/internal/template/select/parts/virtual-list.d.ts.map +1 -1
  20. package/lib/internal/template/select/parts/virtual-list.js +1 -1
  21. package/lib/internal/template/select/parts/virtual-list.js.map +1 -1
  22. package/lib/internal/template/select/utils/render-options.js +1 -1
  23. package/lib/internal/template/select/utils/render-options.js.map +1 -1
  24. package/lib/internal/template/slider/styles.css.js +26 -26
  25. package/lib/internal/template/slider/styles.scoped.css +112 -112
  26. package/lib/internal/template/slider/styles.selectors.js +26 -26
  27. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "6c4f30afc65a527cbc53a727540a1298b7f390fa"
2
+ "commit": "7746a982f5fe8edfd2a7888955c15e0d165af2bf"
3
3
  }
@@ -6,42 +6,107 @@
6
6
  @use '../../styles' as styles;
7
7
  @use '../../styles/tokens' as awsui;
8
8
 
9
+ // Box-shadow spread values for simulating borders without layout shifts
10
+ $border-offset: awsui.$border-item-width;
11
+ $border-offset-double: calc(2 * #{awsui.$border-item-width});
12
+
13
+ // Divider widths (and negative) for reuse
14
+ $divider-w: awsui.$border-divider-list-width;
15
+ $neg-divider-w: calc(-1 * #{$divider-w});
16
+
17
+ @mixin logical-radius($radius) {
18
+ border-start-start-radius: $radius;
19
+ border-start-end-radius: $radius;
20
+ border-end-start-radius: $radius;
21
+ border-end-end-radius: $radius;
22
+ }
23
+
24
+ @function add-offset($value, $offset: $border-offset) {
25
+ @return calc(#{$value} + #{$offset});
26
+ }
27
+
28
+ @mixin content-pad($block, $inline) {
29
+ padding-block: $block;
30
+ padding-inline: $inline;
31
+ }
32
+
33
+ @mixin option-content-pad($v, $h) {
34
+ > .selectable-item-content {
35
+ padding-block: $v;
36
+ padding-inline: $h;
37
+ }
38
+ }
39
+
40
+ @mixin option-content-pad-with-offset($v, $h, $offset: $border-offset) {
41
+ > .selectable-item-content {
42
+ padding-block: add-offset($v, $offset);
43
+ padding-inline: add-offset($h, $offset);
44
+ }
45
+ }
46
+
47
+ @mixin divider-shadow($top-color, $bottom-color) {
48
+ box-shadow:
49
+ inset 0 $divider-w 0 0 $top-color,
50
+ inset 0 $neg-divider-w 0 0 $bottom-color;
51
+ }
52
+
53
+ @mixin divider {
54
+ @include divider-shadow(awsui.$color-border-dropdown-item-default, awsui.$color-border-dropdown-item-default);
55
+ }
56
+
57
+ @mixin highlighted-shadow {
58
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-hover;
59
+ &.is-keyboard {
60
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-focused;
61
+ }
62
+ }
63
+
64
+ @mixin selected-shadow {
65
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-selected;
66
+ &.highlighted {
67
+ box-shadow:
68
+ inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-selected,
69
+ inset 0 0 0 $border-offset-double awsui.$color-border-dropdown-item-hover;
70
+ &.is-keyboard {
71
+ box-shadow:
72
+ inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-selected,
73
+ inset 0 0 0 $border-offset-double awsui.$color-border-dropdown-item-focused;
74
+ }
75
+ }
76
+ }
77
+
9
78
  // Outer borders of adjacent cells overlap and we want selected option border
10
79
  // to take precedence over the other ones, hence negative margins and z-indices
11
80
  .selectable-item {
12
81
  @include styles.default-text-style;
82
+
13
83
  position: relative;
14
84
  list-style: none;
15
85
  z-index: 1;
16
86
 
17
- border-block: awsui.$border-divider-list-width solid transparent;
18
- border-inline: awsui.$border-divider-list-width solid transparent;
19
- border-block-start-color: awsui.$color-border-dropdown-item-default;
20
- border-block-end-color: awsui.$color-border-dropdown-item-default;
87
+ border-width: 0;
21
88
  background-color: awsui.$color-background-dropdown-item-default;
22
89
  color: awsui.$color-text-dropdown-item-default;
23
90
 
24
- // remove the borders completely to avoid the slating effect at the border ends (AWSUI-10545)
25
- border-inline-start-width: 0;
26
- border-inline-end-width: 0;
27
- // to compensate for the loss of padding due to the removal of the left and right borders
28
- // and differences in default divider + selected border widths (visual refresh)
29
- padding-block: calc(#{awsui.$border-item-width} - #{awsui.$border-divider-list-width});
30
- padding-inline: awsui.$border-item-width;
91
+ @include content-pad(awsui.$border-item-width, awsui.$border-item-width);
31
92
 
32
- // For custom styles and background on the selectable-item-content, the content should not clip through the selectable-item borders..
93
+ // For custom styles and background on the selectable-item-content, the
94
+ // content should not clip through the selectable-item borders.
33
95
  overflow: hidden;
34
96
 
35
- > .selectable-item-content {
36
- padding-block: styles.$option-padding-vertical;
37
- padding-inline: styles.$control-padding-horizontal;
97
+ @include divider;
98
+ &.parent.interactiveGroups:not(.highlighted):not(.selected) {
99
+ // kept explicitly to preserve cascade/overrides
100
+ @include divider;
38
101
  }
39
102
 
103
+ @include option-content-pad(styles.$option-padding-vertical, styles.$control-padding-horizontal);
104
+
40
105
  &.pad-bottom {
41
- padding-block-end: calc(#{awsui.$border-item-width} - #{awsui.$border-divider-list-width});
42
- border-block-end-color: transparent;
106
+ padding-block-end: awsui.$border-item-width;
107
+ box-shadow: inset 0 $divider-w 0 0 awsui.$color-border-dropdown-item-default;
43
108
  > .selectable-item-content {
44
- padding-block-end: calc(#{styles.$option-padding-vertical} + #{awsui.$space-xxxs});
109
+ padding-block-end: add-offset(styles.$option-padding-vertical, awsui.$space-xxxs);
45
110
  }
46
111
  }
47
112
 
@@ -67,76 +132,37 @@
67
132
  &.highlighted,
68
133
  &.selected {
69
134
  color: awsui.$color-text-dropdown-item-highlighted;
70
- border-width: awsui.$border-item-width;
71
- border-start-start-radius: awsui.$border-radius-item;
72
- border-start-end-radius: awsui.$border-radius-item;
73
- border-end-start-radius: awsui.$border-radius-item;
74
- border-end-end-radius: awsui.$border-radius-item;
75
- padding-block: 0;
76
- padding-inline: 0;
77
-
78
- > .selectable-item-content {
79
- padding-block: styles.$option-padding-vertical;
80
- padding-inline: styles.$control-padding-horizontal;
81
- }
82
- &.child {
83
- padding-inline-start: 0;
84
- > .selectable-item-content {
85
- padding-inline-start: awsui.$space-xxl;
86
- }
87
- }
88
- &.pad-bottom {
89
- padding-block-end: 0;
90
- > .selectable-item-content {
91
- padding-block-end: (calc(#{styles.$option-padding-vertical} + #{awsui.$space-xxxs}));
92
- }
93
- }
135
+ @include logical-radius(awsui.$border-radius-item);
94
136
  }
95
137
 
96
138
  &.highlighted {
97
139
  z-index: 3;
98
140
  background-color: awsui.$color-background-dropdown-item-hover;
99
- border-color: awsui.$color-border-dropdown-item-hover;
141
+ @include highlighted-shadow;
100
142
  &.disabled {
101
- border-color: awsui.$color-border-dropdown-item-dimmed-hover;
143
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-dimmed-hover;
102
144
  background-color: awsui.$color-background-dropdown-item-dimmed;
103
145
  > .selectable-item-content {
104
146
  color: awsui.$color-text-dropdown-item-dimmed;
105
147
  }
106
148
  }
107
- &.is-keyboard {
108
- border-color: awsui.$color-border-dropdown-item-focused;
109
- &:not(.visual-refresh) {
110
- box-shadow: inset 0 0 0 awsui.$border-control-focus-ring-shadow-spread awsui.$color-border-item-focused;
111
- }
149
+ &:not(.visual-refresh).is-keyboard {
150
+ box-shadow: inset 0 0 0 awsui.$border-control-focus-ring-shadow-spread awsui.$color-border-item-focused;
112
151
  }
113
152
  }
114
153
 
115
154
  &.selected {
116
155
  z-index: 2;
117
156
  background-color: awsui.$color-background-dropdown-item-selected;
118
- border-color: awsui.$color-border-dropdown-item-selected;
119
- // smooth adjacent selected borders to avoid bubble effect (visual refresh)
157
+ @include selected-shadow;
120
158
  &.next-item-selected {
121
159
  border-end-start-radius: 0;
122
160
  border-end-end-radius: 0;
123
161
  }
124
- &.highlighted {
125
- border-color: awsui.$color-border-dropdown-item-selected;
126
- z-index: 3;
127
- outline: awsui.$border-item-width solid awsui.$color-border-dropdown-item-hover;
128
- outline-offset: calc(-2 * #{awsui.$border-item-width});
162
+ &.highlighted:not(.visual-refresh) {
163
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-hover;
129
164
  &.is-keyboard {
130
- border-color: awsui.$color-border-dropdown-item-selected;
131
- outline-color: awsui.$color-border-dropdown-item-focused;
132
- }
133
-
134
- &:not(.visual-refresh) {
135
- border-color: awsui.$color-border-dropdown-item-hover;
136
- outline: none;
137
- &.is-keyboard {
138
- border-color: awsui.$color-border-dropdown-item-focused;
139
- }
165
+ box-shadow: inset 0 0 0 $border-offset awsui.$color-border-dropdown-item-focused;
140
166
  }
141
167
  }
142
168
  }
@@ -154,12 +180,10 @@
154
180
  }
155
181
  }
156
182
  &:not(.interactiveGroups) {
157
- border-block-start-color: awsui.$color-border-dropdown-group;
158
- padding-block: 0;
159
- padding-inline: 0;
183
+ @include divider-shadow(awsui.$color-border-dropdown-group, awsui.$color-border-dropdown-item-default);
184
+ @include content-pad(0, 0);
160
185
  &:not(:has(> .selectable-item-content)) {
161
- padding-block: calc(#{awsui.$border-item-width} - #{awsui.$border-divider-list-width});
162
- padding-inline: awsui.$border-item-width;
186
+ @include content-pad(awsui.$border-item-width, awsui.$border-item-width);
163
187
  }
164
188
 
165
189
  > .selectable-item-content {
@@ -177,44 +201,56 @@
177
201
  &.highlighted > .selectable-item-content {
178
202
  color: awsui.$color-text-dropdown-item-highlighted;
179
203
  }
180
- &.highlighted,
181
- &.selected {
182
- padding-block: 0;
183
- padding-inline: 0;
184
- > .selectable-item-content {
185
- padding-block: styles.$group-option-padding-vertical;
186
- padding-inline: styles.$control-padding-horizontal;
187
- }
188
- }
189
204
  }
190
205
  }
191
206
 
207
+ // Remove top divider from the first item after a sticky item to avoid double
208
+ // borders. Exclude highlighted/selected states to preserve their box-shadow.
209
+ &:not(.disabled):not(.parent),
210
+ &.interactiveGroups:not(.disabled) {
211
+ cursor: pointer;
212
+ }
213
+
214
+ &.sticky + &:not(.sticky):not(.highlighted):not(.selected) {
215
+ box-shadow: inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default;
216
+ }
217
+
192
218
  &.sticky {
193
219
  position: sticky;
194
220
  inset-block-start: 0;
195
221
 
196
- // Push the next option down to prevent its border in highlighted or selected state from being partially covered by the sticky option
197
- margin-block-end: calc(#{awsui.$border-item-width} - #{awsui.$border-divider-list-width});
222
+ // Push the next option down to prevent its border in highlighted or
223
+ // selected state from being partially covered by the sticky option
224
+ margin-block-end: awsui.$border-item-width;
198
225
 
199
226
  // Stay on top of the other options when they are scrolled up
200
227
  z-index: 4;
201
228
 
229
+ // Keep padding consistent to prevent visual shift on hover
230
+ padding-inline: awsui.$border-item-width;
231
+
232
+ &.highlighted,
233
+ &.selected {
234
+ padding-inline: awsui.$border-item-width;
235
+ }
236
+ // stylelint-disable-next-line no-descending-specificity
237
+ > .selectable-item-content {
238
+ padding-inline: styles.$control-padding-horizontal;
239
+ }
240
+
202
241
  &:not(.highlighted):not(.selected) {
203
242
  // Prevent covering the list border despite the higher z-index
204
- border-inline-start-width: awsui.$border-item-width;
205
- border-inline-start-color: awsui.$color-border-dropdown-container;
206
- border-inline-end-color: awsui.$color-border-dropdown-container;
207
- padding-inline: 0;
208
- > .selectable-item-content {
209
- padding-inline: styles.$control-padding-horizontal;
210
- }
243
+ box-shadow:
244
+ inset 0 $divider-w 0 0 awsui.$color-border-dropdown-item-default,
245
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default,
246
+ inset awsui.$border-width-popover 0 0 0 awsui.$color-border-dropdown-container;
211
247
 
212
248
  &:not(.with-scrollbar) {
213
- border-inline-end-width: awsui.$border-item-width;
214
- }
215
-
216
- &.with-scrollbar {
217
- border-inline-end-width: 0;
249
+ box-shadow:
250
+ inset 0 $divider-w 0 0 awsui.$color-border-dropdown-item-default,
251
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default,
252
+ inset awsui.$border-width-popover 0 0 0 awsui.$color-border-dropdown-container,
253
+ inset calc(-1 * #{awsui.$border-width-popover}) 0 0 0 awsui.$color-border-dropdown-container;
218
254
  }
219
255
 
220
256
  // Only display top border when not being rendered after the filter
@@ -225,25 +261,26 @@
225
261
  }
226
262
  }
227
263
  &.after-header {
228
- border-block-start-color: awsui.$color-background-dropdown-item-default;
264
+ box-shadow:
265
+ inset 0 $divider-w 0 0 awsui.$color-background-dropdown-item-default,
266
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default,
267
+ inset awsui.$border-width-popover 0 0 0 awsui.$color-border-dropdown-container;
268
+ &:not(.with-scrollbar) {
269
+ box-shadow:
270
+ inset 0 $divider-w 0 0 awsui.$color-background-dropdown-item-default,
271
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default,
272
+ inset awsui.$border-width-popover 0 0 0 awsui.$color-border-dropdown-container,
273
+ inset calc(-1 * #{awsui.$border-width-popover}) 0 0 0 awsui.$color-border-dropdown-container;
274
+ }
229
275
  }
230
276
  }
231
277
 
232
278
  &.disabled.highlighted,
233
279
  &.disabled.selected {
234
- border-block-end-color: transparent;
235
- border-block-start-color: transparent;
236
- border-inline-start-color: transparent;
237
- border-inline-end-color: transparent;
280
+ box-shadow: none;
238
281
  }
239
282
  }
240
283
 
241
- &:not(.disabled):not(.parent) {
242
- cursor: pointer;
243
- }
244
- &.interactiveGroups:not(.disabled) {
245
- cursor: pointer;
246
- }
247
284
  &.virtual {
248
285
  position: absolute;
249
286
  inset-block-start: awsui.$border-dropdown-virtual-offset-width;
@@ -251,7 +288,16 @@
251
288
  inline-size: 100%;
252
289
  box-sizing: border-box;
253
290
  &:first-of-type:not(.selected, .highlighted) {
254
- border-block-start-color: awsui.$color-border-dropdown-item-top;
291
+ box-shadow:
292
+ inset 0 $divider-w 0 0 awsui.$color-border-dropdown-item-top,
293
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default;
294
+ }
295
+
296
+ // Adds top border between option group and previous element
297
+ &.parent:not(.interactiveGroups) {
298
+ box-shadow:
299
+ inset 0 $divider-w 0 0 awsui.$color-border-dropdown-group,
300
+ inset 0 $neg-divider-w 0 0 awsui.$color-border-dropdown-item-default;
255
301
  }
256
302
  }
257
303
  }
@@ -263,9 +309,9 @@
263
309
  inline-size: 100%;
264
310
  inset-block-start: 0;
265
311
  inset-inline-start: 0;
266
- padding-block-start: awsui.$border-divider-list-width;
267
- &-first {
268
- padding-block-end: awsui.$border-divider-list-width;
312
+
313
+ .selectable-item.virtual > & {
314
+ block-size: calc(100% - #{$border-offset});
269
315
  }
270
316
  }
271
317
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Build environment
3
- $awsui-commit-hash: "6c4f30af";
3
+ $awsui-commit-hash: "7746a982";
4
4
  // Manually managed CSS-variables
5
5
  $maxContentWidth: --awsui-max-content-width-4hh3rt;
6
6
  $minContentWidth: --awsui-min-content-width-4hh3rt;
@@ -83,41 +83,57 @@ $border-radius-slider-thumb: 50%;
83
83
  @mixin error-thumb-focus-styles {
84
84
  background-color: var(
85
85
  #{custom-props.$styleSliderHandleBackgroundActive},
86
- awsui.$color-background-slider-error-pressed
86
+ awsui.$color-background-slider-handle-error-active
87
87
  );
88
88
  border-block-width: 2px;
89
89
  border-inline-width: 2px;
90
- border-color: var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-error-pressed);
90
+ border-color: var(
91
+ #{custom-props.$styleSliderHandleBackgroundActive},
92
+ awsui.$color-background-slider-handle-error-active
93
+ );
91
94
 
92
95
  box-shadow:
93
96
  0px 0 0 2px awsui.$color-background-slider-handle-ring,
94
- 0 0 0 4px var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-error-pressed);
97
+ 0 0 0 4px
98
+ var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-handle-error-active);
95
99
  }
96
100
 
97
101
  @mixin warning-thumb-focus-styles {
98
102
  background-color: var(
99
103
  #{custom-props.$styleSliderHandleBackgroundActive},
100
- awsui.$color-background-slider-warning-pressed
104
+ awsui.$color-background-slider-handle-warning-active
101
105
  );
102
106
  border-block-width: 2px;
103
107
  border-inline-width: 2px;
104
- border-color: var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-warning-pressed);
108
+ border-color: var(
109
+ #{custom-props.$styleSliderHandleBackgroundActive},
110
+ awsui.$color-background-slider-handle-warning-active
111
+ );
105
112
 
106
113
  box-shadow:
107
114
  0px 0 0 2px awsui.$color-background-slider-handle-ring,
108
- 0 0 0 4px var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-warning-pressed);
115
+ 0 0 0 4px
116
+ var(#{custom-props.$styleSliderHandleBackgroundActive}, awsui.$color-background-slider-handle-warning-active);
109
117
  }
110
118
 
111
119
  @mixin error-thumb-hover-styles {
112
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
120
+ background-color: var(
121
+ #{custom-props.$styleSliderHandleBackgroundDefault},
122
+ awsui.$color-background-slider-handle-error-active
123
+ );
113
124
  box-shadow:
114
125
  0px 0 0 2px awsui.$color-background-slider-handle-ring,
115
- 0 0 0 4px var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
126
+ 0 0 0 4px
127
+ var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-background-slider-handle-error-active);
116
128
  }
117
129
 
118
130
  @mixin warning-thumb-hover-styles {
119
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
131
+ background-color: var(
132
+ #{custom-props.$styleSliderHandleBackgroundDefault},
133
+ awsui.$color-background-slider-handle-warning-active
134
+ );
120
135
  box-shadow:
121
136
  0px 0 0 2px awsui.$color-background-slider-handle-ring,
122
- 0 0 0 4px var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
137
+ 0 0 0 4px
138
+ var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-background-slider-handle-warning-active);
123
139
  }
@@ -62,11 +62,17 @@
62
62
  inline-size: calc(var(#{custom-props.$sliderRangeInlineSize}) + mixins.$thumb-size);
63
63
 
64
64
  &.error {
65
- background-color: var(#{custom-props.$styleSliderRangeBackgroundDefault}, awsui.$color-text-status-error);
65
+ background-color: var(
66
+ #{custom-props.$styleSliderRangeBackgroundDefault},
67
+ awsui.$color-background-slider-range-error-default
68
+ );
66
69
  }
67
70
 
68
71
  &.warning {
69
- background-color: var(#{custom-props.$styleSliderRangeBackgroundDefault}, awsui.$color-text-status-warning);
72
+ background-color: var(
73
+ #{custom-props.$styleSliderRangeBackgroundDefault},
74
+ awsui.$color-background-slider-range-warning-default
75
+ );
70
76
  }
71
77
 
72
78
  &.active {
@@ -79,14 +85,14 @@
79
85
  &.error-active {
80
86
  background-color: var(
81
87
  #{custom-props.$styleSliderRangeBackgroundActive},
82
- awsui.$color-background-slider-error-pressed
88
+ awsui.$color-background-slider-range-error-active
83
89
  );
84
90
  }
85
91
 
86
92
  &.warning-active {
87
93
  background-color: var(
88
94
  #{custom-props.$styleSliderRangeBackgroundActive},
89
- awsui.$color-background-slider-warning-pressed
95
+ awsui.$color-background-slider-range-warning-active
90
96
  );
91
97
  }
92
98
 
@@ -213,24 +219,30 @@
213
219
  }
214
220
 
215
221
  &.error {
216
- background: var(#{custom-props.$styleSliderTrackBackgroundColor}, awsui.$color-text-status-error);
222
+ background: var(
223
+ #{custom-props.$styleSliderTrackBackgroundColor},
224
+ awsui.$color-background-slider-range-error-default
225
+ );
217
226
  }
218
227
 
219
228
  &.warning {
220
- background: var(#{custom-props.$styleSliderTrackBackgroundColor}, awsui.$color-text-status-warning);
229
+ background: var(
230
+ #{custom-props.$styleSliderTrackBackgroundColor},
231
+ awsui.$color-background-slider-range-warning-default
232
+ );
221
233
  }
222
234
 
223
235
  &.error-active {
224
236
  background-color: var(
225
237
  #{custom-props.$styleSliderRangeBackgroundActive},
226
- awsui.$color-background-slider-error-pressed
238
+ awsui.$color-background-slider-range-error-active
227
239
  );
228
240
  }
229
241
 
230
242
  &.warning-active {
231
243
  background-color: var(
232
244
  #{custom-props.$styleSliderRangeBackgroundActive},
233
- awsui.$color-background-slider-warning-pressed
245
+ awsui.$color-background-slider-range-warning-active
234
246
  );
235
247
  }
236
248
 
@@ -330,13 +342,25 @@
330
342
 
331
343
  .error {
332
344
  &::-webkit-slider-thumb {
333
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
334
- border-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
345
+ background-color: var(
346
+ #{custom-props.$styleSliderHandleBackgroundDefault},
347
+ awsui.$color-background-slider-handle-error-default
348
+ );
349
+ border-color: var(
350
+ #{custom-props.$styleSliderHandleBackgroundDefault},
351
+ awsui.$color-background-slider-handle-error-default
352
+ );
335
353
  }
336
354
 
337
355
  &::-moz-range-thumb {
338
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
339
- border-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-error);
356
+ background-color: var(
357
+ #{custom-props.$styleSliderHandleBackgroundDefault},
358
+ awsui.$color-background-slider-handle-error-default
359
+ );
360
+ border-color: var(
361
+ #{custom-props.$styleSliderHandleBackgroundDefault},
362
+ awsui.$color-background-slider-handle-error-default
363
+ );
340
364
  }
341
365
  &:hover::-webkit-slider-thumb {
342
366
  @include mixins.error-thumb-hover-styles;
@@ -359,13 +383,25 @@
359
383
 
360
384
  .warning {
361
385
  &::-webkit-slider-thumb {
362
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
363
- border-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
386
+ background-color: var(
387
+ #{custom-props.$styleSliderHandleBackgroundDefault},
388
+ awsui.$color-background-slider-handle-warning-default
389
+ );
390
+ border-color: var(
391
+ #{custom-props.$styleSliderHandleBackgroundDefault},
392
+ awsui.$color-background-slider-handle-warning-default
393
+ );
364
394
  }
365
395
 
366
396
  &::-moz-range-thumb {
367
- background-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
368
- border-color: var(#{custom-props.$styleSliderHandleBackgroundDefault}, awsui.$color-text-status-warning);
397
+ background-color: var(
398
+ #{custom-props.$styleSliderHandleBackgroundDefault},
399
+ awsui.$color-background-slider-handle-warning-default
400
+ );
401
+ border-color: var(
402
+ #{custom-props.$styleSliderHandleBackgroundDefault},
403
+ awsui.$color-background-slider-handle-warning-default
404
+ );
369
405
  }
370
406
  &:hover::-webkit-slider-thumb {
371
407
  @include mixins.warning-thumb-hover-styles;