Skip to content

Commit ace1ea8

Browse files
fix(progressbar): enforce staticWhite track color
this removes the previously created mod property that could override the staticWhite background-color, which is in contradiction to how the CSS should behave.
1 parent f91abfd commit ace1ea8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/progressbar/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
}
236236

237237
.spectrum-ProgressBar-track {
238-
background: var(--mod-progressbar-track-color-white, var(--spectrum-progressbar-track-color-white));
238+
background-color: var(--spectrum-progressbar-track-color-white);
239239
}
240240
}
241241

components/progressbar/stories/template.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export const Template = ({
5454
5555
<div
5656
class="${rootClass}-track"
57-
style="--mod-progressbar-track-color: ${ifDefined(trackFill)}">
57+
style="--mod-progressbar-track-color: ${staticColor !== "white" ? ifDefined(trackFill) : undefined}"
58+
>
5859
<div
5960
class="${rootClass}-fill"
6061
style=

0 commit comments

Comments
 (0)