Skip to content

Commit 19c1432

Browse files
authored
refactor: add progress-bar forced color mode base styles (#10261)
1 parent dbebe59 commit 19c1432

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/progress-bar/src/styles/vaadin-progress-bar-base-styles.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,14 @@ export const progressBarStyles = css`
9797
animation: indeterminate-reduced 2s linear infinite alternate;
9898
}
9999
}
100+
101+
@media (forced-colors: active) {
102+
[part='bar'] {
103+
border-width: max(1px, var(--vaadin-progress-bar-border-width));
104+
}
105+
106+
[part='value'] {
107+
background: CanvasText !important;
108+
}
109+
}
100110
`;

0 commit comments

Comments
 (0)