Skip to content

Commit 5e2a852

Browse files
committed
fix(material/radio): do not set cursor on non interactive radio (#33418)
Fixes that we were setting `cursor: pointer` on radio buttons that aren't interactive. Fixes #31937. (cherry picked from commit d81320f)
1 parent 9b9d0ea commit 5e2a852

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/material/radio/_radio-common.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ $fallbacks: m3-radio.get-tokens();
2323
box-sizing: content-box;
2424
width: $_icon-size;
2525
height: $_icon-size;
26-
cursor: pointer;
2726

2827
// This is something we inherited from MDC, but it shouldn't be necessary.
2928
// Removing it will likely lead to screenshot diffs.
@@ -33,6 +32,8 @@ $fallbacks: m3-radio.get-tokens();
3332
padding: calc((#{$size-token} - #{$_icon-size}) / 2);
3433

3534
@if ($is-interactive) {
35+
cursor: pointer;
36+
3637
// MDC's hover indication comes from their ripple which we don't use.
3738
&:hover > .mdc-radio__native-control:not([disabled]):not(:focus) {
3839
& ~ .mdc-radio__background::before {

0 commit comments

Comments
 (0)