Skip to content

Commit e0b76ed

Browse files
authored
fix(material/radio): clicks not propagating to wrapper elements (#24459)
Fixes a regression caused by #19505 where clicking directly on the `input` element will prevent the click from reaching custom `click` listeners outside the radio button.
1 parent 4f13d25 commit e0b76ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/radio/radio.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ $ripple-radius: 20px;
203203
width: 100%;
204204
height: 100%;
205205
cursor: inherit;
206+
207+
// Puts the input behind the circle while keeping it visible so that
208+
// it allows `click` events to propagate up to the `label` wrapper.
209+
z-index: -1;
206210
}
207211

208212
@include a11y.high-contrast(active, off) {

0 commit comments

Comments
 (0)