Skip to content

Commit 61f3987

Browse files
crisbetojelbourn
authored andcommitted
fix(progress-bar): buffer animation not working on user-generated themes (#4525)
Fixes the progress bar buffer animation not working on user-generated themes (e.g. the dark theme in the demo app).
1 parent 9c4d601 commit 61f3987

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/lib/progress-bar/_progress-bar-theme.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$warn: map-get($theme, warn);
99

1010
.mat-progress-bar-background {
11-
background: #{_mat-progress-bar-buffer($primary, lighter)};
11+
background-image: #{_mat-progress-bar-buffer($primary, lighter)};
1212
}
1313

1414
.mat-progress-bar-buffer {
@@ -21,25 +21,27 @@
2121

2222
.mat-progress-bar.mat-accent {
2323
.mat-progress-bar-background {
24-
background: #{_mat-progress-bar-buffer($accent, lighter)};
24+
background-image: #{_mat-progress-bar-buffer($accent, lighter)};
2525
}
2626

2727
.mat-progress-bar-buffer {
2828
background-color: mat-color($accent, lighter);
2929
}
30+
3031
.mat-progress-bar-fill::after {
3132
background-color: mat-color($accent);
3233
}
3334
}
3435

3536
.mat-progress-bar.mat-warn {
3637
.mat-progress-bar-background {
37-
background: #{_mat-progress-bar-buffer($warn, lighter)};
38+
background-image: #{_mat-progress-bar-buffer($warn, lighter)};
3839
}
3940

4041
.mat-progress-bar-buffer {
4142
background-color: mat-color($warn, lighter);
4243
}
44+
4345
.mat-progress-bar-fill::after {
4446
background-color: mat-color($warn);
4547
}

0 commit comments

Comments
 (0)