Skip to content

Commit 9e9daf8

Browse files
crisbetojelbourn
authored andcommitted
fix(autocomplete): panel blending in with background in high contrast mode (#11190)
Fixes the autocomplete panel not being visible in high contrast mode, because it doesn't have a border and box shadows aren't being rendered.
1 parent 3018b6d commit 9e9daf8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/autocomplete/autocomplete.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import '../core/style/menu-common';
2+
@import '../../cdk/a11y/a11y';
23

34
/**
45
* The max-height of the panel, currently matching mat-select value.
@@ -22,4 +23,8 @@ $mat-autocomplete-panel-max-height: 256px !default;
2223
&.mat-autocomplete-hidden {
2324
visibility: hidden;
2425
}
26+
27+
@include cdk-high-contrast {
28+
outline: solid 1px;
29+
}
2530
}

0 commit comments

Comments
 (0)