Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 011315f

Browse files
Splaktarandrewseguin
authored andcommitted
fix(autocomplete): align highlight style with spec (#11244)
fix a11y issue where difference between highlighted text is too small Fixes #10060
1 parent ef14194 commit 011315f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/autocomplete/autocomplete-theme.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ md-autocomplete.md-THEME_NAME-theme {
2121
background: '{{background-hue-1}}';
2222
li {
2323
color: '{{foreground-1}}';
24-
.highlight {
25-
color: '{{background-600}}';
26-
}
2724
&:hover,
2825
&.selected {
2926
background: '{{background-500-0.18}}';

src/components/autocomplete/autocomplete.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ md-autocomplete {
188188
// Expand the virtualRepeatContainer as much as the max-height from the JavaScript allows.
189189
// This is necessary for the virtualRepeatContainer to be able to grow back.
190190
height: 100%;
191+
192+
.highlight {
193+
font-weight: bold;
194+
}
191195
}
192196

193197
.md-virtual-repeat-container.md-not-found {

0 commit comments

Comments
 (0)