From 3e650d59269427b8a41d3266910bf229d22738d6 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 21 May 2025 07:54:49 +0200 Subject: [PATCH] fix(material/radio): assistive technology announcing button as invalid Fixes that some screen readers were reading out "required, invalid data" for radio buttons that were marked as required. The problem was triggered by us using the `required` attribute and the fix is to add `aria-invalid="false"` to it. Note that an alternate approach is to use `aria-required` instead, but there are some internal checks that require both `aria-required` and `required` to be set which re-introduces the issue. Fixes #30761. --- src/material/radio/radio.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/material/radio/radio.html b/src/material/radio/radio.html index 796d7e8708c0..cdcdbc436cc1 100644 --- a/src/material/radio/radio.html +++ b/src/material/radio/radio.html @@ -2,6 +2,13 @@
+