File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
material-experimental/mdc-select Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ $scale: 0.75 !default;
72
72
top : 50% ;
73
73
left : 50% ;
74
74
transform : translate (-50% , -50% );
75
+
76
+ @include a11y .high-contrast (active , off) {
77
+ // On Chromium browsers the `currentColor` blends in with the
78
+ // background for SVGs so we have to fall back to `CanvasText`.
79
+ fill : CanvasText;
80
+ }
75
81
}
76
82
}
77
83
@@ -159,4 +165,8 @@ $scale: 0.75 !default;
159
165
content : ' ' ;
160
166
white-space : pre ;
161
167
width : 1px ;
168
+
169
+ // Prevents some browsers from rendering the element in high contrast mode.
170
+ display : inline-block ;
171
+ opacity : 0 ;
162
172
}
Original file line number Diff line number Diff line change @@ -158,4 +158,8 @@ $placeholder-arrow-space: 2 * ($arrow-size + $arrow-margin);
158
158
content : ' ' ;
159
159
white-space : pre ;
160
160
width : 1px ;
161
+
162
+ // Prevents some browsers from rendering the element in high contrast mode.
163
+ display : inline-block ;
164
+ opacity : 0 ;
161
165
}
You can’t perform that action at this time.
0 commit comments