From b911fb03c5c4827c1775e6e80a88b70b94a02ea1 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 21 Feb 2022 18:52:29 +0100 Subject: [PATCH] fix(material/radio): clicks not propagating to wrapper elements 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. --- src/material/radio/radio.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/material/radio/radio.scss b/src/material/radio/radio.scss index fe4189f25494..01d2edb62d6e 100644 --- a/src/material/radio/radio.scss +++ b/src/material/radio/radio.scss @@ -203,6 +203,10 @@ $ripple-radius: 20px; width: 100%; height: 100%; cursor: inherit; + + // Puts the input behind the circle while keeping it visible so that + // it allows `click` events to propagate up to the `label` wrapper. + z-index: -1; } @include a11y.high-contrast(active, off) {