Skip to content

Commit 2481ee3

Browse files
willshowellandrewseguin
authored andcommitted
style(spinner, bar): don't use hardcoded hues (#4088)
1 parent c8ec981 commit 2481ee3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

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

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

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

1414
.mat-progress-bar-buffer {
15-
background-color: mat-color($primary, 100);
15+
background-color: mat-color($primary, lighter);
1616
}
1717

1818
.mat-progress-bar-fill::after {
19-
background-color: mat-color($primary, 600);
19+
background-color: mat-color($primary);
2020
}
2121

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

2727
.mat-progress-bar-buffer {
28-
background-color: mat-color($accent, 100);
28+
background-color: mat-color($accent, lighter);
2929
}
3030
.mat-progress-bar-fill::after {
31-
background-color: mat-color($accent, 600);
31+
background-color: mat-color($accent);
3232
}
3333
}
3434

3535
.mat-progress-bar.mat-warn {
3636
.mat-progress-bar-background {
37-
background: #{_mat-progress-bar-buffer($warn, 100)};
37+
background: #{_mat-progress-bar-buffer($warn, lighter)};
3838
}
3939

4040
.mat-progress-bar-buffer {
41-
background-color: mat-color($warn, 100);
41+
background-color: mat-color($warn, lighter);
4242
}
4343
.mat-progress-bar-fill::after {
44-
background-color: mat-color($warn, 600);
44+
background-color: mat-color($warn);
4545
}
4646
}
4747
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99

1010
.mat-progress-spinner, .mat-spinner {
1111
path {
12-
stroke: mat-color($primary, 600);
12+
stroke: mat-color($primary);
1313
}
1414

1515
&.mat-accent path {
16-
stroke: mat-color($accent, 600);
16+
stroke: mat-color($accent);
1717
}
1818

1919
&.mat-warn path {
20-
stroke: mat-color($warn, 600);
20+
stroke: mat-color($warn);
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)