From 6a472eb6a73629a90401b3bf7ca8bd0d4f31ba4a Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 11 Jul 2018 17:02:20 +0200 Subject: [PATCH] fix(datepicker): showing dot in high contrast mode after popup has closed (#12099) Fixes the datepicker's popup showing a 1x1 pixel dot in high contrast mode, after the calendar has been closed. The dot comes from the outline that we add to the popup which collapses after we detach the overlay. --- src/lib/datepicker/calendar-body.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/datepicker/calendar-body.scss b/src/lib/datepicker/calendar-body.scss index 3500451efe9..1fe0e6bd4af 100644 --- a/src/lib/datepicker/calendar-body.scss +++ b/src/lib/datepicker/calendar-body.scss @@ -68,7 +68,7 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar @include cdk-high-contrast { - .mat-datepicker-popup, + .mat-datepicker-popup:not(:empty), .mat-calendar-body-selected { outline: solid 1px; }