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;
7272 top : 50% ;
7373 left : 50% ;
7474 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+ }
7581 }
7682}
7783
@@ -159,4 +165,8 @@ $scale: 0.75 !default;
159165 content : ' ' ;
160166 white-space : pre ;
161167 width : 1px ;
168+
169+ // Prevents some browsers from rendering the element in high contrast mode.
170+ display : inline-block ;
171+ opacity : 0 ;
162172}
Original file line number Diff line number Diff line change @@ -158,4 +158,8 @@ $placeholder-arrow-space: 2 * ($arrow-size + $arrow-margin);
158158 content : ' ' ;
159159 white-space : pre ;
160160 width : 1px ;
161+
162+ // Prevents some browsers from rendering the element in high contrast mode.
163+ display : inline-block ;
164+ opacity : 0 ;
161165}
You can’t perform that action at this time.
0 commit comments