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).
This commit is contained in:
Kristiyan Kostadinov
2017-05-15 23:25:18 +02:00
committed by Jeremy Elbourn
parent 9c4d6018fa
commit 61f3987050
@@ -8,7 +8,7 @@
$warn: map-get($theme, warn);
.mat-progress-bar-background {
background: #{_mat-progress-bar-buffer($primary, lighter)};
background-image: #{_mat-progress-bar-buffer($primary, lighter)};
}
.mat-progress-bar-buffer {
@@ -21,12 +21,13 @@
.mat-progress-bar.mat-accent {
.mat-progress-bar-background {
background: #{_mat-progress-bar-buffer($accent, lighter)};
background-image: #{_mat-progress-bar-buffer($accent, lighter)};
}
.mat-progress-bar-buffer {
background-color: mat-color($accent, lighter);
}
.mat-progress-bar-fill::after {
background-color: mat-color($accent);
}
@@ -34,12 +35,13 @@
.mat-progress-bar.mat-warn {
.mat-progress-bar-background {
background: #{_mat-progress-bar-buffer($warn, lighter)};
background-image: #{_mat-progress-bar-buffer($warn, lighter)};
}
.mat-progress-bar-buffer {
background-color: mat-color($warn, lighter);
}
.mat-progress-bar-fill::after {
background-color: mat-color($warn);
}