From 9e9daf8428fabf9e8e99058d792ac70159789a29 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 8 May 2018 18:52:49 +0200 Subject: [PATCH] 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. --- src/lib/autocomplete/autocomplete.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/autocomplete/autocomplete.scss b/src/lib/autocomplete/autocomplete.scss index 25f4fcdfaca..0f68421edf5 100644 --- a/src/lib/autocomplete/autocomplete.scss +++ b/src/lib/autocomplete/autocomplete.scss @@ -1,4 +1,5 @@ @import '../core/style/menu-common'; +@import '../../cdk/a11y/a11y'; /** * The max-height of the panel, currently matching mat-select value. @@ -22,4 +23,8 @@ $mat-autocomplete-panel-max-height: 256px !default; &.mat-autocomplete-hidden { visibility: hidden; } + + @include cdk-high-contrast { + outline: solid 1px; + } }