mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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
This commit is contained in:
committed by
Andrew Seguin
parent
dfe10c3fd3
commit
0409707adc
@@ -25,7 +25,7 @@
|
||||
|
||||
.mat-button-toggle-checked {
|
||||
background-color: mat-color($background, selected-button);
|
||||
color: mat-color($foreground, base);
|
||||
color: mat-color($foreground, secondary-text);
|
||||
}
|
||||
|
||||
.mat-button-toggle-disabled {
|
||||
|
||||
@@ -692,6 +692,7 @@ $mat-light-theme-foreground: (
|
||||
icon: rgba(black, 0.54),
|
||||
icons: rgba(black, 0.54),
|
||||
text: rgba(black, 0.87),
|
||||
slider-min: rgba(black, 0.87),
|
||||
slider-off: rgba(black, 0.26),
|
||||
slider-off-active: rgba(black, 0.38),
|
||||
);
|
||||
@@ -709,6 +710,7 @@ $mat-dark-theme-foreground: (
|
||||
icon: white,
|
||||
icons: white,
|
||||
text: white,
|
||||
slider-min: white,
|
||||
slider-off: rgba(white, 0.3),
|
||||
slider-off-active: rgba(white, 0.3),
|
||||
);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
.mat-expansion-panel {
|
||||
background: mat-color($background, card);
|
||||
color: mat-color($foreground, base);
|
||||
color: mat-color($foreground, text);
|
||||
}
|
||||
|
||||
.mat-action-row {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
$mat-slider-off-color: mat-color($foreground, slider-off);
|
||||
$mat-slider-off-focused-color: mat-color($foreground, slider-off-active);
|
||||
$mat-slider-disabled-color: mat-color($foreground, slider-off);
|
||||
$mat-slider-labeled-min-value-thumb-color: mat-color($foreground, base);
|
||||
$mat-slider-labeled-min-value-thumb-color: mat-color($foreground, slider-min);
|
||||
$mat-slider-labeled-min-value-thumb-label-color: mat-color($foreground, slider-off);
|
||||
$mat-slider-focus-ring-color: mat-color($accent, default, 0.2);
|
||||
$mat-slider-focus-ring-min-value-color: mat-color($foreground, base, 0.12);
|
||||
|
||||
Reference in New Issue
Block a user