Skip to content

Commit c459515

Browse files
committed
fix(checkbox): no focus indicator in high contrast
* Fixes that the checkbox does not have a focus indicator in high-contrast. Similarly to native checkboxes, the Material checkbox should have a dotted border/outline on keyboard focus. Fixes #13227
1 parent 3bc52df commit c459515

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/checkbox/checkbox.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
240240
._mat-animation-noopable & {
241241
transition: none;
242242
}
243+
244+
@include cdk-high-contrast {
245+
.mat-checkbox.cdk-keyboard-focused & {
246+
border-style: dotted;
247+
}
248+
}
243249
}
244250

245251
.mat-checkbox-background {

0 commit comments

Comments
 (0)