Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/material-experimental/mdc-select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ $scale: 0.75 !default;
content: ' ';
white-space: pre;
width: 1px;

// Prevents some browsers from rendering the element in high contrast mode.
display: inline-block;
opacity: 0;

// Prevents some browsers from rendering the element in high contrast mode. Use `visibility`
// instead of `opacity` since VoiceOver + Chrome still reads out the space with the latter.
visibility: hidden;
}
7 changes: 4 additions & 3 deletions src/material/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ $placeholder-arrow-space: 2 * ($arrow-size + $arrow-margin);
content: ' ';
white-space: pre;
width: 1px;

// Prevents some browsers from rendering the element in high contrast mode.
display: inline-block;
opacity: 0;

// Prevents some browsers from rendering the element in high contrast mode. Use `visibility`
// instead of `opacity` since VoiceOver + Chrome still reads out the space with the latter.
visibility: hidden;
}