Skip to content

Commit 1150f06

Browse files
committed
Fix background colors for progress bar.
1 parent b7e5f22 commit 1150f06

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

projects/material-css-vars/src/lib/_mat-lib-overwrites.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@include _mat-mdc-checkbox-overwrites();
1313
@include _mat-mdc-chips-overwrites();
1414
@include _mat-mdc-date-picker-overwrites();
15+
@include _mat-mdc-progress-bar-overwrites();
1516
}
1617

1718
// ---------------------------
@@ -292,4 +293,27 @@
292293
> .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
293294
background: mat-css-color(500, 0.3, $palette);
294295
}
296+
}
297+
298+
// ---------------------------
299+
// Progress Bar component
300+
// ---------------------------
301+
@mixin _mat-mdc-progress-bar-overwrites {
302+
.mat-mdc-progress-bar {
303+
&.mat-primary .mdc-linear-progress__buffer-bar {
304+
@include mat-css-light-dark-theme-global() {
305+
background-color: mat-css-color(500, 0.25, "primary");
306+
}
307+
}
308+
&.mat-accent .mdc-linear-progress__buffer-bar {
309+
@include mat-css-light-dark-theme-global() {
310+
background-color: mat-css-color(500, 0.25, "accent");
311+
}
312+
}
313+
&.mat-warn .mdc-linear-progress__buffer-bar {
314+
@include mat-css-light-dark-theme-global() {
315+
background-color: mat-css-color(500, 0.25, "warn");
316+
}
317+
}
318+
}
295319
}

0 commit comments

Comments
 (0)