mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(checkbox): poor color contrast for disabled checkbox (#14044)
Fixes some poor color contrast on the text of a disabled checkbox. The issue comes from the fact that it was using a custom color rather than the one from theme.
This commit is contained in:
committed by
Jeremy Elbourn
parent
1c74b034c9
commit
4a7cb2b8ca
@@ -9,6 +9,7 @@
|
||||
$accent: map-get($theme, accent);
|
||||
$warn: map-get($theme, warn);
|
||||
$background: map-get($theme, background);
|
||||
$foreground: map-get($theme, foreground);
|
||||
|
||||
|
||||
// The color of the checkbox's checkmark / mixedmark.
|
||||
@@ -22,7 +23,7 @@
|
||||
$disabled-color: if($is-dark-theme, $white-30pct-opacity-on-dark, $black-26pct-opacity-on-light);
|
||||
|
||||
.mat-checkbox-frame {
|
||||
border-color: mat-color(map-get($theme, foreground), secondary-text);
|
||||
border-color: mat-color($foreground, secondary-text);
|
||||
}
|
||||
|
||||
.mat-checkbox-checkmark {
|
||||
@@ -73,7 +74,7 @@
|
||||
}
|
||||
|
||||
.mat-checkbox-label {
|
||||
color: $disabled-color;
|
||||
color: mat-color($foreground, secondary-text);
|
||||
}
|
||||
|
||||
@include cdk-high-contrast {
|
||||
|
||||
Reference in New Issue
Block a user