Skip to content

Commit 90ac613

Browse files
committed
fix(material/checkbox): ensure native control receives clicks (#30511)
The `input` element inside the checkbox was stacked under some other elements which might prevent clicks. These changes ensure it's stacked on top. Fixes #30494. (cherry picked from commit f0d6658)
1 parent 76f2846 commit 90ac613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/checkbox/_checkbox-common.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ $_fallback-size: 40px;
4949
padding: 0;
5050
opacity: 0;
5151
cursor: inherit;
52+
z-index: 1;
5253

5354
@include token-utils.use-tokens($prefix, $slots) {
5455
$layer-size: token-utils.get-token-variable(state-layer-size, $fallback: $_fallback-size);

0 commit comments

Comments
 (0)