Skip to content

Commit

Permalink
fix(material/checkbox): ensure native control receives clicks (#30511)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored Feb 19, 2025
1 parent 68b267d commit f0d6658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/material/checkbox/_checkbox-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ $_fallback-size: 40px;
padding: 0;
opacity: 0;
cursor: inherit;
z-index: 1;

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

0 comments on commit f0d6658

Please # to comment.