We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d906b6 commit ea5e5e0Copy full SHA for ea5e5e0
src/material/datepicker/BUILD.bazel
@@ -60,6 +60,7 @@ sass_binary(
60
sass_binary(
61
name = "datepicker_toggle_scss",
62
src = "datepicker-toggle.scss",
63
+ deps = ["//src/cdk/a11y:a11y_scss_lib"],
64
)
65
66
src/material/datepicker/datepicker-toggle.scss
@@ -1,3 +1,5 @@
1
+@use '../../cdk/a11y/a11y';
2
+
3
.mat-form-field-appearance-legacy {
4
.mat-form-field-prefix,
5
.mat-form-field-suffix {
@@ -21,3 +23,11 @@
21
23
}
22
24
25
26
27
+@include a11y.high-contrast(active, off) {
28
+ .mat-datepicker-toggle-default-icon {
29
+ // On Chromium-based browsers the icon doesn't appear to inherit the text color in high
30
+ // contrast mode so we have to set it explicitly. This is a no-op on IE and Firefox.
31
+ color: CanvasText;
32
+ }
33
+}
0 commit comments