Skip to content

Commit 66c9e4e

Browse files
authored
fix(material/datepicker): add focus indication to calendar selected date in high contrast mode (#22889)
Fixes that selected dates in the calendar didn't have focus indication in high contrast mode. Fixes #22873.
1 parent 65bc9fe commit 66c9e4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/material/datepicker/calendar-body.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,12 @@ $calendar-range-end-body-cell-size:
208208

209209
.cdk-keyboard-focused .mat-calendar-body-active,
210210
.cdk-program-focused .mat-calendar-body-active {
211-
& > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
211+
& > .mat-calendar-body-cell-content {
212212
outline: dotted 2px;
213+
214+
&.mat-calendar-body-selected {
215+
outline: solid 3px;
216+
}
213217
}
214218
}
215219

0 commit comments

Comments
 (0)