Skip to content

Commit 4021276

Browse files
willshowellandrewseguin
authored andcommitted
style(checkbox,chips,tabs): remove hardcoded hues (#4101)
* Remove hardcoded hues from checkbox/pseduo checkbox * Remove hardcoded hues from chips * Remove hardcoded hues from tabs ink/focus
1 parent 3acf2a2 commit 4021276

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/lib/checkbox/_checkbox-theme.scss

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

4040
.mat-checkbox-indeterminate, .mat-checkbox-checked {
4141
&.mat-primary .mat-checkbox-background {
42-
background-color: mat-color($primary, 500);
42+
background-color: mat-color($primary);
4343
}
4444

4545
&.mat-accent .mat-checkbox-background {
46-
background-color: mat-color($accent, 500);
46+
background-color: mat-color($accent);
4747
}
4848

4949
&.mat-warn .mat-checkbox-background {
50-
background-color: mat-color($warn, 500);
50+
background-color: mat-color($warn);
5151
}
5252
}
5353

src/lib/chips/_chips-theme.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
color: $selected-foreground;
3333

3434
&.mat-primary {
35-
background-color: mat-color($primary, 500);
36-
color: mat-contrast($primary, 500);
35+
background-color: mat-color($primary);
36+
color: mat-color($primary, default-contrast);
3737
}
3838

3939
&.mat-accent {
40-
background-color: mat-color($accent, 500);
41-
color: mat-contrast($accent, 500);
40+
background-color: mat-color($accent);
41+
color: mat-color($accent, default-contrast);
4242
}
4343

4444
&.mat-warn {
45-
background-color: mat-color($warn, 500);
46-
color: mat-contrast($warn, 500);
45+
background-color: mat-color($warn);
46+
color: mat-color($warn, default-contrast);
4747
}
4848
}
4949
}

src/lib/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@mixin _mat-pseudo-checkbox-inner-content-theme($theme, $pallete-name) {
44
$pallete: map-get($theme, $pallete-name);
5-
$color: mat-color($pallete, 500);
5+
$color: mat-color($pallete);
66

77
.mat-pseudo-checkbox-checked.mat-#{$pallete-name},
88
.mat-pseudo-checkbox-indeterminate.mat-#{$pallete-name},

src/lib/tabs/_tabs-theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
}
2424

2525
.mat-tab-label:focus {
26-
background-color: mat-color($primary, 100, 0.3);
26+
background-color: mat-color($primary, lighter, 0.3);
2727
}
2828

2929
.mat-ink-bar {
30-
background-color: mat-color($primary, 500);
30+
background-color: mat-color($primary);
3131
}
3232

3333
.mat-tab-label, .mat-tab-link {

0 commit comments

Comments
 (0)