Skip to content

Commit a95da92

Browse files
authored
fix(checkbox): high contrast focus indication not working (#19488)
A while ago the `cdk-high-contrast` mixin was changed from using a media query to a class. This seems to have broken one of the selectors that render the focus indication. Fixes #19443.
1 parent e1d85d2 commit a95da92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/material/checkbox/checkbox.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
253253
transition: none;
254254
}
255255

256-
@include cdk-high-contrast(active, off) {
257-
// Note that we change the border style of the checkbox frame to dotted because this
258-
// is how IE/Edge similarly treats native checkboxes in high contrast mode.
259-
.mat-checkbox.cdk-keyboard-focused & {
256+
.mat-checkbox.cdk-keyboard-focused & {
257+
@include cdk-high-contrast(active, off) {
258+
// Note that we change the border style of the checkbox frame to dotted because this
259+
// is how IE/Edge similarly treats native checkboxes in high contrast mode.
260260
border-style: dotted;
261261
}
262262
}

0 commit comments

Comments
 (0)