Skip to content

Commit de93d35

Browse files
crisbetovictoriaaa234
authored andcommitted
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.
1 parent c3064d7 commit de93d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/datepicker/calendar-body.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar
6868

6969

7070
@include cdk-high-contrast {
71-
.mat-datepicker-popup,
71+
.mat-datepicker-popup:not(:empty),
7272
.mat-calendar-body-selected {
7373
outline: solid 1px;
7474
}

0 commit comments

Comments
 (0)