Skip to content

Commit ae8a126

Browse files
authored
fix(slider): corrects contrast bug caused by template default arg (#3614)
1 parent 968cb1e commit ae8a126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/slider/stories/template.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Template = ({
2121
values = [],
2222
variant,
2323
labelPosition,
24-
fillColor = "rgb(213, 213, 213)",
24+
fillColor,
2525
showTicks = false,
2626
showTickLabels = false,
2727
isDisabled = false,
@@ -127,8 +127,8 @@ export const Template = ({
127127
})}
128128
id=${ifDefined(id)}
129129
style=${styleMap({
130+
"--spectrum-slider-track-color": fillColor ? fillColor : undefined,
130131
"inline-size": "240px",
131-
["--spectrum-slider-track-color"]: fillColor,
132132
...customStyles,
133133
})}
134134
role=${ifDefined(values.length > 1 ? "group" : undefined)}

0 commit comments

Comments
 (0)