@carbon/styles 1.67.0-rc.0 → 1.68.0-rc.0

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 (43) hide show
  1. package/README.md +3 -3
  2. package/css/styles.css +142 -82
  3. package/css/styles.min.css +1 -1
  4. package/package.json +9 -9
  5. package/scss/__tests__/zone-test.js +1 -1
  6. package/scss/_reset.scss +0 -2
  7. package/scss/_zone.scss +1 -1
  8. package/scss/components/accordion/_accordion.scss +20 -17
  9. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  10. package/scss/components/button/_button.scss +1 -1
  11. package/scss/components/code-snippet/_code-snippet.scss +1 -2
  12. package/scss/components/contained-list/_contained-list.scss +2 -2
  13. package/scss/components/content-switcher/_content-switcher.scss +1 -1
  14. package/scss/components/data-table/_data-table.scss +4 -4
  15. package/scss/components/data-table/action/_data-table-action.scss +2 -2
  16. package/scss/components/data-table/expandable/_data-table-expandable.scss +1 -2
  17. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  18. package/scss/components/date-picker/_date-picker.scss +1 -1
  19. package/scss/components/dialog/_dialog.scss +2 -2
  20. package/scss/components/dropdown/_dropdown.scss +1 -1
  21. package/scss/components/file-uploader/_file-uploader.scss +4 -5
  22. package/scss/components/list-box/_list-box.scss +1 -1
  23. package/scss/components/modal/_modal.scss +1 -2
  24. package/scss/components/notification/_actionable-notification.scss +1 -2
  25. package/scss/components/notification/_inline-notification.scss +1 -2
  26. package/scss/components/notification/_toast-notification.scss +1 -2
  27. package/scss/components/number-input/_number-input.scss +1 -2
  28. package/scss/components/pagination/_pagination.scss +1 -1
  29. package/scss/components/pagination-nav/_pagination-nav.scss +1 -1
  30. package/scss/components/popover/_popover.scss +4 -5
  31. package/scss/components/select/_select.scss +2 -2
  32. package/scss/components/slider/_slider.scss +21 -5
  33. package/scss/components/tabs/_tabs.scss +29 -4
  34. package/scss/components/tag/_tag.scss +5 -2
  35. package/scss/components/toggle/_toggle.scss +0 -1
  36. package/scss/components/treeview/_treeview.scss +4 -0
  37. package/scss/components/ui-shell/header/_header.scss +1 -1
  38. package/scss/components/ui-shell/side-nav/_side-nav.scss +3 -3
  39. package/scss/utilities/_convert.scss +6 -6
  40. package/scss/utilities/_skeleton.scss +1 -0
  41. package/scss/utilities/_tooltip.scss +2 -5
  42. package/scss/utilities/_z-index.scss +3 -3
  43. package/telemetry.yml +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.67.0-rc.0",
4
+ "version": "1.68.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,13 +40,13 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.27.0",
44
- "@carbon/feature-flags": "^0.23.0",
45
- "@carbon/grid": "^11.28.0",
46
- "@carbon/layout": "^11.27.0",
47
- "@carbon/motion": "^11.23.0",
48
- "@carbon/themes": "^11.42.0-rc.0",
49
- "@carbon/type": "^11.32.0",
43
+ "@carbon/colors": "^11.28.0-rc.0",
44
+ "@carbon/feature-flags": "^0.24.0-rc.0",
45
+ "@carbon/grid": "^11.29.0-rc.0",
46
+ "@carbon/layout": "^11.28.0-rc.0",
47
+ "@carbon/motion": "^11.24.0-rc.0",
48
+ "@carbon/themes": "^11.43.0-rc.0",
49
+ "@carbon/type": "^11.33.0-rc.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/telemetry-js": "^1.5.0"
52
52
  },
@@ -67,5 +67,5 @@
67
67
  "scss/**/*.css",
68
68
  "css/**/*.css"
69
69
  ],
70
- "gitHead": "99debcc48ebc5f9a5ee5848fef06af4ee6448c30"
70
+ "gitHead": "e48f5e6815bd93e518e8da73c7555590b85cda22"
71
71
  }
@@ -63,7 +63,7 @@ describe('zone', () => {
63
63
  ([token, value]) => {
64
64
  return rule.declarations.find((declaration) => {
65
65
  return (
66
- declaration.property.includes(token) &&
66
+ declaration?.property?.includes(token) &&
67
67
  declaration.value === value
68
68
  );
69
69
  });
package/scss/_reset.scss CHANGED
@@ -150,8 +150,6 @@
150
150
  blockquote::after,
151
151
  q::before,
152
152
  q::after {
153
- content: '';
154
- // stylelint-disable-next-line declaration-block-no-duplicate-properties
155
153
  content: none;
156
154
  }
157
155
 
package/scss/_zone.scss CHANGED
@@ -40,7 +40,7 @@ $-components: (
40
40
  color: custom-property.get-var('text-primary');
41
41
 
42
42
  @each $key, $value in $theme {
43
- @if type-of($value) == color {
43
+ @if meta.type-of($value) == color {
44
44
  @include custom-property.declaration($key, $value);
45
45
  }
46
46
  }
@@ -50,7 +50,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
50
50
  @include layout.use('density', $default: 'normal');
51
51
 
52
52
  @include component-reset.reset;
53
- /* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
53
+
54
54
  & {
55
55
  inline-size: 100%;
56
56
  list-style: none;
@@ -86,7 +86,6 @@ $content-padding: 0 0 0 $spacing-05 !default;
86
86
  transition: background-color motion(standard, productive) $duration-fast-02;
87
87
  @include button-reset.reset;
88
88
 
89
- /* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
90
89
  & {
91
90
  position: relative;
92
91
  display: flex;
@@ -150,7 +149,6 @@ $content-padding: 0 0 0 $spacing-05 !default;
150
149
 
151
150
  transition: all $duration-fast-02 motion(standard, productive);
152
151
 
153
- /* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
154
152
  & {
155
153
  flex: 0 0 1rem;
156
154
  block-size: 1rem;
@@ -165,7 +163,6 @@ $content-padding: 0 0 0 $spacing-05 !default;
165
163
  .#{$prefix}--accordion__title {
166
164
  @include type-style('body-01');
167
165
 
168
- /* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector, no-duplicate-selectors */
169
166
  & {
170
167
  z-index: 1;
171
168
  inline-size: 100%;
@@ -176,11 +173,13 @@ $content-padding: 0 0 0 $spacing-05 !default;
176
173
 
177
174
  .#{$prefix}--accordion__wrapper {
178
175
  // Properties for when the accordion is closed
176
+ display: none;
179
177
  overflow: hidden;
180
178
  padding: 0;
181
179
  max-block-size: 0;
182
180
  opacity: 0;
183
- transition: all $duration-fast-02 motion(entrance, productive);
181
+ transition: all $duration-fast-02 motion(entrance, productive)
182
+ allow-discrete;
184
183
  writing-mode: horizontal-tb;
185
184
  }
186
185
 
@@ -231,6 +230,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
231
230
 
232
231
  > .#{$prefix}--accordion__wrapper {
233
232
  // Properties for when the accordion is open
233
+ display: block;
234
234
  overflow: visible;
235
235
  max-block-size: fit-content;
236
236
  opacity: 1;
@@ -245,6 +245,21 @@ $content-padding: 0 0 0 $spacing-05 !default;
245
245
  }
246
246
  }
247
247
  }
248
+ /** starting style also not supported widely
249
+ * https://caniuse.com/mdn-css_at-rules_starting-style
250
+ */
251
+ /* Needs to be after the previous accordion__item--active rule
252
+ to take effect, as the specificity is the same */
253
+
254
+ @starting-style {
255
+ .#{$prefix}--accordion__item--active {
256
+ > .#{$prefix}--accordion__wrapper {
257
+ padding: 0;
258
+ max-block-size: 0;
259
+ opacity: 0;
260
+ }
261
+ }
262
+ }
248
263
 
249
264
  // flush
250
265
  .#{$prefix}--accordion--flush .#{$prefix}--accordion__item {
@@ -383,15 +398,3 @@ $content-padding: 0 0 0 $spacing-05 !default;
383
398
  padding-inline-start: 0;
384
399
  }
385
400
  }
386
-
387
- @mixin -content-visible {
388
- block-size: 100%;
389
- opacity: 1;
390
- visibility: inherit;
391
- }
392
-
393
- @mixin -content-hidden {
394
- block-size: 0;
395
- opacity: 0;
396
- visibility: hidden;
397
- }
@@ -163,6 +163,6 @@
163
163
  .#{$prefix}--breadcrumb
164
164
  .#{$prefix}--overflow-menu.#{$prefix}--btn--icon-only {
165
165
  min-block-size: 1.125rem;
166
- padding-inline: 0 0;
166
+ padding-inline: 0;
167
167
  }
168
168
  }
@@ -413,7 +413,7 @@
413
413
  }
414
414
 
415
415
  // Windows HCM fix
416
- // stylelint-disable-next-line no-duplicate-selectors
416
+
417
417
  .#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only
418
418
  .#{$prefix}--btn__icon
419
419
  path:not([data-icon-path]):not([fill='none']),
@@ -555,7 +555,7 @@ $copy-btn-feedback: $background-inverse !default;
555
555
  }
556
556
 
557
557
  // Windows HCM fix
558
- /* stylelint-disable */
558
+
559
559
  .#{$prefix}--snippet__icon {
560
560
  @include high-contrast-mode('icon-fill');
561
561
  }
@@ -568,5 +568,4 @@ $copy-btn-feedback: $background-inverse !default;
568
568
  .#{$prefix}--snippet--multi {
569
569
  @include high-contrast-mode('outline');
570
570
  }
571
- /* stylelint-enable */
572
571
  }
@@ -198,7 +198,7 @@
198
198
  block-size: 1px;
199
199
  content: '';
200
200
  inset-block-end: 0;
201
- inset-inline: 0 0;
201
+ inset-inline: 0;
202
202
  }
203
203
 
204
204
  .#{$prefix}--contained-list--inset-rulers
@@ -248,7 +248,7 @@
248
248
  display: flex;
249
249
  justify-content: flex-end;
250
250
  inset-block-start: 0;
251
- inset-inline: 0 0;
251
+ inset-inline: 0;
252
252
  pointer-events: none;
253
253
  }
254
254
 
@@ -231,7 +231,7 @@
231
231
  }
232
232
 
233
233
  // Windows HCM fix
234
- // stylelint-disable-next-line no-duplicate-selectors
234
+
235
235
  .#{$prefix}--content-switcher-btn:focus {
236
236
  @include high-contrast-mode('focus');
237
237
  }
@@ -319,7 +319,7 @@
319
319
  .#{$prefix}--data-table--xs td.#{$prefix}--table-column-menu,
320
320
  .#{$prefix}--data-table--sm td.#{$prefix}--table-column-menu {
321
321
  block-size: convert.to-rem(24px);
322
- padding-block: 0 0;
322
+ padding-block: 0;
323
323
  }
324
324
 
325
325
  .#{$prefix}--data-table--sm td.#{$prefix}--table-column-menu {
@@ -583,7 +583,7 @@
583
583
  .#{$prefix}--data-table--top-aligned-header
584
584
  )
585
585
  th.#{$prefix}--table-column-checkbox {
586
- padding-block: 0 0;
586
+ padding-block: 0;
587
587
  }
588
588
 
589
589
  .#{$prefix}--data-table.#{$prefix}--data-table--xs
@@ -827,7 +827,7 @@
827
827
  }
828
828
 
829
829
  //hides ff scrollbar
830
- @-moz-document url-prefix() {
830
+ @document url-prefix() {
831
831
  thead,
832
832
  tbody {
833
833
  scrollbar-width: none;
@@ -1076,7 +1076,7 @@
1076
1076
  td.#{$prefix}--table-cell--column-slug,
1077
1077
 
1078
1078
  // Windows HCM fix
1079
- // stylelint-disable-next-line no-duplicate-selectors
1079
+
1080
1080
  .#{$prefix}--data-table-content {
1081
1081
  @include high-contrast-mode('outline');
1082
1082
  }
@@ -396,7 +396,7 @@
396
396
  background-color: $background-brand;
397
397
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
398
398
  inset-block-end: 0;
399
- inset-inline: 0 0;
399
+ inset-inline: 0;
400
400
  opacity: 0;
401
401
  pointer-events: none;
402
402
  transform: translate3d(0, 48px, 0);
@@ -646,7 +646,7 @@
646
646
  .#{$prefix}--table-toolbar--sm .#{$prefix}--btn--primary {
647
647
  block-size: convert.to-rem(32px);
648
648
  min-block-size: auto;
649
- padding-block: 0.375rem 0.375rem;
649
+ padding-block: 0.375rem;
650
650
  }
651
651
 
652
652
  .#{$prefix}--table-toolbar--sm
@@ -49,7 +49,7 @@
49
49
  td {
50
50
  border: 0;
51
51
  background-color: $layer-hover;
52
- padding-block: 0 0;
52
+ padding-block: 0;
53
53
  transition: padding $duration-moderate-01 motion(standard, productive),
54
54
  background-color $duration-fast-01 motion(standard, productive);
55
55
  }
@@ -484,7 +484,6 @@
484
484
  @include high-contrast-mode('focus');
485
485
  }
486
486
 
487
- // stylelint-disable-next-line no-duplicate-selectors
488
487
  .#{$prefix}--table-expand__svg {
489
488
  @include high-contrast-mode('icon-fill');
490
489
  }
@@ -106,7 +106,7 @@
106
106
  th.#{$prefix}--table-sort__header
107
107
  .#{$prefix}--table-sort__flex
108
108
  .#{$prefix}--table-header-label {
109
- padding-block: 0 0;
109
+ padding-block: 0;
110
110
  }
111
111
 
112
112
  .#{$prefix}--data-table.#{$prefix}--data-table--top-aligned-header.#{$prefix}--data-table--sm
@@ -236,7 +236,7 @@
236
236
  }
237
237
 
238
238
  // Windows HCM fix
239
- // stylelint-disable-next-line no-duplicate-selectors
239
+
240
240
  .#{$prefix}--date-picker__icon {
241
241
  @include high-contrast-mode('icon-fill');
242
242
  }
@@ -83,7 +83,7 @@
83
83
  /* Before-open state */
84
84
  /* Needs to be after the previous dialog[open] rule to take effect,
85
85
  as the specificity is the same */
86
- /* stylelint-disable-next-line scss/at-rule-no-unknown */
86
+
87
87
  @starting-style {
88
88
  &[open] {
89
89
  opacity: 0;
@@ -140,7 +140,7 @@
140
140
  */
141
141
  /* This starting-style rule cannot be nested inside the above selector
142
142
  because the nesting selector cannot represent pseudo-elements. */
143
- /* stylelint-disable-next-line scss/at-rule-no-unknown */
143
+
144
144
  @starting-style {
145
145
  .#{$prefix}--dialog[open]::backdrop {
146
146
  opacity: 0;
@@ -461,7 +461,7 @@
461
461
  }
462
462
 
463
463
  // Windows HCM fix
464
- // stylelint-disable-next-line no-duplicate-selectors
464
+
465
465
  .#{$prefix}--dropdown .#{$prefix}--list-box__field {
466
466
  @include high-contrast-mode('outline');
467
467
  }
@@ -189,7 +189,7 @@
189
189
  .#{$prefix}--file-filename-tooltip {
190
190
  inline-size: -webkit-fill-available;
191
191
  padding-inline-start: $spacing-05;
192
- @-moz-document url-prefix() {
192
+ @document url-prefix() {
193
193
  inline-size: -moz-available;
194
194
  }
195
195
  }
@@ -197,7 +197,7 @@
197
197
 
198
198
  .#{$prefix}--file-filename-tooltip {
199
199
  inline-size: -webkit-fill-available;
200
- @-moz-document url-prefix() {
200
+ @document url-prefix() {
201
201
  inline-size: -moz-available;
202
202
  }
203
203
  }
@@ -217,7 +217,7 @@
217
217
  text-overflow: ellipsis;
218
218
  white-space: nowrap;
219
219
 
220
- @-moz-document url-prefix() {
220
+ @document url-prefix() {
221
221
  inline-size: -moz-available;
222
222
  }
223
223
  }
@@ -401,7 +401,7 @@
401
401
  }
402
402
 
403
403
  // Windows HCM fix
404
- /* stylelint-disable */
404
+
405
405
  .#{$prefix}--file__selected-file {
406
406
  @include high-contrast-mode('outline');
407
407
  }
@@ -409,5 +409,4 @@
409
409
  .#{$prefix}--file__state-container .#{$prefix}--file-close svg path {
410
410
  @include high-contrast-mode('icon-fill');
411
411
  }
412
- /* stylelint-enable */
413
412
  }
@@ -515,7 +515,7 @@ $list-box-menu-width: convert.to-rem(300px);
515
515
  display: none;
516
516
  background-color: $layer;
517
517
  inline-size: $list-box-width;
518
- inset-inline: 0 0;
518
+ inset-inline: 0;
519
519
  overflow-y: auto;
520
520
  transition: max-height $duration-fast-02 motion(standard, productive);
521
521
 
@@ -416,7 +416,7 @@
416
416
  }
417
417
 
418
418
  // Windows HCM fix
419
- /* stylelint-disable no-duplicate-selectors */
419
+
420
420
  .#{$prefix}--modal-close__icon {
421
421
  @include high-contrast-mode('icon-fill');
422
422
  }
@@ -424,5 +424,4 @@
424
424
  .#{$prefix}--modal-close:focus {
425
425
  @include high-contrast-mode('focus');
426
426
  }
427
- /* stylelint-enable no-duplicate-selectors */
428
427
  }
@@ -475,7 +475,7 @@
475
475
  }
476
476
 
477
477
  // Windows HCM fix
478
- /* stylelint-disable */
478
+
479
479
  .#{$prefix}--actionable-notification {
480
480
  @include high-contrast-mode('outline');
481
481
  }
@@ -491,5 +491,4 @@
491
491
  .#{$prefix}--actionable-notification__close-icon {
492
492
  @include high-contrast-mode('icon-fill');
493
493
  }
494
- /* stylelint-enable */
495
494
  }
@@ -306,7 +306,7 @@
306
306
  }
307
307
 
308
308
  // Windows HCM fix
309
- /* stylelint-disable */
309
+
310
310
  .#{$prefix}--inline-notification {
311
311
  @include high-contrast-mode('outline');
312
312
  }
@@ -323,5 +323,4 @@
323
323
  .#{$prefix}--inline-notification__close-icon {
324
324
  @include high-contrast-mode('icon-fill');
325
325
  }
326
- /* stylelint-enable */
327
326
  }
@@ -222,7 +222,7 @@
222
222
  }
223
223
 
224
224
  // Windows HCM fix
225
- /* stylelint-disable */
225
+
226
226
  .#{$prefix}--toast-notification {
227
227
  @include high-contrast-mode('outline');
228
228
  }
@@ -235,5 +235,4 @@
235
235
  .#{$prefix}--toast-notification .#{$prefix}--toast-notification__icon {
236
236
  @include high-contrast-mode('icon-fill');
237
237
  }
238
- /* stylelint-enable */
239
238
  }
@@ -511,7 +511,7 @@
511
511
  }
512
512
  }
513
513
  // Windows HCM fix
514
- /* stylelint-disable */
514
+
515
515
  .#{$prefix}--number__control-btn:hover,
516
516
  .#{$prefix}--number__control-btn:focus {
517
517
  @include high-contrast-mode('focus');
@@ -524,7 +524,6 @@
524
524
  .#{$prefix}--number__control-btn svg {
525
525
  @include high-contrast-mode('icon-fill');
526
526
  }
527
- /* stylelint-enable */
528
527
  }
529
528
  .#{$prefix}--number__controls:hover .#{$prefix}--number__control-btn::after {
530
529
  display: none;
@@ -283,7 +283,7 @@
283
283
  }
284
284
 
285
285
  // Windows HCM fix
286
- // stylelint-disable-next-line no-duplicate-selectors
286
+
287
287
  .#{$prefix}--pagination__button,
288
288
  .#{$prefix}--btn--ghost.#{$prefix}--pagination__button {
289
289
  @include high-contrast-mode('outline');
@@ -142,7 +142,7 @@
142
142
  max-block-size: layout.size('height');
143
143
  text-indent: calc(50% - 4.5px);
144
144
  // Override some Firefox user-agent styles
145
- @-moz-document url-prefix() {
145
+ @document url-prefix() {
146
146
  text-indent: 0;
147
147
  }
148
148
  }
@@ -62,7 +62,6 @@ $popover-text-color: custom-property.get-var(
62
62
  // The distance between the popover container and the triggering element
63
63
  // Specify the distance between the popover and the trigger. This value must
64
64
  // have a unit otherwise the `calc()` expression will not work
65
- // stylelint-disable-next-line length-zero-no-unit
66
65
  $popover-offset: custom-property.get-var('popover-offset', 0rem);
67
66
 
68
67
  // Customize the dimensions of the caret by specifying its width or height.
@@ -297,7 +296,7 @@ $popover-caret-height: custom-property.get-var(
297
296
  > .#{$prefix}--popover-content::before {
298
297
  block-size: $popover-offset;
299
298
  inset-block-start: 0;
300
- inset-inline: 0 0;
299
+ inset-inline: 0;
301
300
  transform: translateY(-100%);
302
301
  }
303
302
 
@@ -460,7 +459,7 @@ $popover-caret-height: custom-property.get-var(
460
459
  > .#{$prefix}--popover-content::before {
461
460
  block-size: $popover-offset;
462
461
  inset-block-end: 0;
463
- inset-inline: 0 0;
462
+ inset-inline: 0;
464
463
  transform: translateY(100%);
465
464
  }
466
465
 
@@ -616,7 +615,7 @@ $popover-caret-height: custom-property.get-var(
616
615
  > .#{$prefix}--popover
617
616
  > .#{$prefix}--popover-content::before {
618
617
  inline-size: $popover-offset;
619
- inset-block: 0 0;
618
+ inset-block: 0;
620
619
  inset-inline-start: 0;
621
620
  transform: translateX(-100%);
622
621
  }
@@ -783,7 +782,7 @@ $popover-caret-height: custom-property.get-var(
783
782
  > .#{$prefix}--popover
784
783
  > .#{$prefix}--popover-content::before {
785
784
  inline-size: $popover-offset;
786
- inset-block: 0 0;
785
+ inset-block: 0;
787
786
  inset-inline-end: 0;
788
787
  transform: translateX(100%);
789
788
  }
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  // Select text renders a little high on Firefox
78
- @-moz-document url-prefix() {
78
+ @document url-prefix() {
79
79
  // Removes dotted inner focus
80
80
  &:-moz-focusring,
81
81
  &::-moz-focus-inner {
@@ -344,7 +344,7 @@
344
344
  }
345
345
 
346
346
  // Windows HCM fix
347
- // stylelint-disable-next-line no-duplicate-selectors
347
+
348
348
  .#{$prefix}--select__arrow {
349
349
  @include high-contrast-mode('icon-fill');
350
350
  }
@@ -372,19 +372,36 @@
372
372
 
373
373
  &:hover {
374
374
  cursor: not-allowed;
375
- transform: translate(-50%, -50%);
375
+ transform: none;
376
376
  }
377
377
 
378
378
  &:focus {
379
379
  background-color: $border-disabled;
380
380
  box-shadow: none;
381
381
  outline: none;
382
- transform: translate(-50%, -50%);
382
+ transform: none;
383
383
  }
384
384
 
385
385
  &:active {
386
386
  background: $border-disabled;
387
- transform: translate(-50%, -50%);
387
+ box-shadow: none;
388
+ transform: none;
389
+ }
390
+ }
391
+
392
+ .#{$prefix}--slider--disabled .#{$prefix}--slider__thumb--lower,
393
+ .#{$prefix}--slider--disabled .#{$prefix}--slider__thumb--upper {
394
+ background-color: transparent;
395
+
396
+ &:active,
397
+ &:hover,
398
+ &:focus {
399
+ background-color: transparent;
400
+ transform: none;
401
+ }
402
+
403
+ .#{$prefix}--slider__thumb-icon {
404
+ fill: $border-disabled;
388
405
  }
389
406
  }
390
407
 
@@ -479,7 +496,7 @@
479
496
  }
480
497
 
481
498
  // Windows HCM fix
482
- /* stylelint-disable */
499
+
483
500
  .#{$prefix}--slider__thumb {
484
501
  @include high-contrast-mode('outline');
485
502
  }
@@ -489,5 +506,4 @@
489
506
  .#{$prefix}--slider__track {
490
507
  @include high-contrast-mode('outline');
491
508
  }
492
- /* stylelint-enable */
493
509
  }