Skip to content

Commit eac1512

Browse files
crisbetojelbourn
authored andcommitted
fix(checkbox): underlying native checkbox being rendered when parent uses css column layout (#9258)
Fixes an issue where the hidden native checkbox inside the `mat-checkbox` gets rendered if one of the ancestors is using a CSS column layout. Fixes #9049.
1 parent ec6678d commit eac1512

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cdk/a11y/_a11y.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
padding: 0;
99
position: absolute;
1010
width: 1px;
11+
12+
// Avoid browsers rendering the focus ring in some cases.
13+
outline: 0;
14+
15+
// Avoid some cases where the browser will still render the native controls (see #9049).
16+
-webkit-appearance: none;
17+
-moz-appearance: none;
1118
}
1219
}
1320

0 commit comments

Comments
 (0)