Skip to content

Commit 46c0ce3

Browse files
committed
chore(colorslider): alias disabled color
1 parent 6103f72 commit 46c0ce3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/colorslider/index.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.spectrum-ColorSlider {
1515
/* Size and Spacing */
1616
--spectrum-color-slider-handle-margin-block: var(--spectrum-component-top-to-text-75);
17+
--spectrum-color-slider-control-track-width: var(--spectrum-color-control-track-width);
1718

1819
/* @todo Refactor with --spectrum-color-slider-border-color once gray rgb token is no longer necessary to workaround nested rgb color token value using rgba(). */
1920
--spectrum-color-slider-border-color-rgba: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-color-slider-border-opacity));
@@ -25,6 +26,8 @@
2526

2627
/* Settings for nested Color handle */
2728
--mod-colorhandle-hitarea-border-radius: var(--mod-color-slider-handle-hitarea-border-radius, 0px);
29+
30+
--spectrum-colorslider-fill-color-disabled: var(--spectrum-disabled-background-color);
2831
}
2932

3033
.spectrum-ColorSlider {
@@ -33,7 +36,7 @@
3336

3437
min-inline-size: var(--mod-color-slider-minimum-length, var(--spectrum-color-slider-minimum-length));
3538
inline-size: var(--mod-color-slider-length, var(--spectrum-color-slider-length));
36-
block-size: var(--mod-color-slider-control-track-width, var(--spectrum-color-control-track-width));
39+
block-size: var(--mod-color-slider-control-track-width, var(--spectrum-color-slider-control-track-width));
3740

3841
/* Otherwise we randomly drag a file icon */
3942
user-select: none;
@@ -87,7 +90,7 @@
8790

8891
.spectrum-ColorSlider.is-disabled & {
8992
--spectrum-color-slider-border-color-local: var(--highcontrast-color-slider-border-color-disabled, var(--mod-color-slider-border-color-disabled, var(--spectrum-disabled-background-color)));
90-
background: var(--highcontrast-color-slider-background-color-disabled, var(--mod-color-slider-background-color-disabled, var(--spectrum-disabled-background-color)));
93+
background: var(--highcontrast-color-slider-background-color-disabled, var(--mod-color-slider-background-color-disabled, var(--spectrum-colorslider-fill-color-disabled)));
9194
}
9295
}
9396

0 commit comments

Comments
 (0)