Skip to content

Commit 0409707

Browse files
willshowellandrewseguin
authored andcommitted
style(button-toggle, slider, expansion): remove base colors in themes (#5147)
* Cleanup harsh colors for selected button toggle - Light theme: black -> black-54 - Dark theme: white -> white-70 * Make the slider min thumb less harsh in light theme - Light theme: black -> black-87 - Dark theme: white -> white * Use default text color for expansion panel
1 parent dfe10c3 commit 0409707

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/lib/button-toggle/_button-toggle-theme.scss

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

2626
.mat-button-toggle-checked {
2727
background-color: mat-color($background, selected-button);
28-
color: mat-color($foreground, base);
28+
color: mat-color($foreground, secondary-text);
2929
}
3030

3131
.mat-button-toggle-disabled {

src/lib/core/theming/_palette.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ $mat-light-theme-foreground: (
692692
icon: rgba(black, 0.54),
693693
icons: rgba(black, 0.54),
694694
text: rgba(black, 0.87),
695+
slider-min: rgba(black, 0.87),
695696
slider-off: rgba(black, 0.26),
696697
slider-off-active: rgba(black, 0.38),
697698
);
@@ -709,6 +710,7 @@ $mat-dark-theme-foreground: (
709710
icon: white,
710711
icons: white,
711712
text: white,
713+
slider-min: white,
712714
slider-off: rgba(white, 0.3),
713715
slider-off-active: rgba(white, 0.3),
714716
);

src/lib/expansion/_expansion-theme.scss

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

99
.mat-expansion-panel {
1010
background: mat-color($background, card);
11-
color: mat-color($foreground, base);
11+
color: mat-color($foreground, text);
1212
}
1313

1414
.mat-action-row {

src/lib/slider/_slider-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$mat-slider-off-color: mat-color($foreground, slider-off);
2525
$mat-slider-off-focused-color: mat-color($foreground, slider-off-active);
2626
$mat-slider-disabled-color: mat-color($foreground, slider-off);
27-
$mat-slider-labeled-min-value-thumb-color: mat-color($foreground, base);
27+
$mat-slider-labeled-min-value-thumb-color: mat-color($foreground, slider-min);
2828
$mat-slider-labeled-min-value-thumb-label-color: mat-color($foreground, slider-off);
2929
$mat-slider-focus-ring-color: mat-color($accent, default, 0.2);
3030
$mat-slider-focus-ring-min-value-color: mat-color($foreground, base, 0.12);

0 commit comments

Comments
 (0)