Skip to content

Commit b6061d3

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 c53f3f4 commit b6061d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const Template = ({
5454
5555
<div
5656
class="${rootClass}-track"
57-
style="--mod-progressbar-track-color: ${ifDefined(trackFill)}">
57+
style="--mod-progressbar-track-color: ${ifDefined(trackFill && staticColor !== "white" ? trackFill : undefined)}">
5858
<div
5959
class="${rootClass}-fill"
6060
style=

0 commit comments

Comments
 (0)