[X] I agree to follow this project's code of conduct.
Description of issue
In updating documentation on properly showing invalid state in radio groups (#3005). We discussed removing the invalid attribute from the Radio component—favoring the Radio Group instead. In talking with the accessibility team we learned:
In WAI-ARIA 1.2, the aria-invalid state is deprecated on role="radio" (see “inherited states and properties” under https://www.w3.org/TR/wai-aria-1.2/#radio), and I don’t think that screen readers will be consistent about announcing the invalid state when aria-invalid is specified on a input[type=radio], adding aria-invalid to the role="radiogroup" is the recommended approach, (see “supported states and properties” under https://www.w3.org/TR/wai-aria-1.2/#radiogroup).
The Radio component itself will apply this deprecated invalid attribute in updated(changes:) which based on this new understanding, is deprecated behavior. The component should be updated to properly represent invalid state in the Radio Group, not on the individual Radio element.
Code of conduct
Description of issue
In updating documentation on properly showing invalid state in radio groups (#3005). We discussed removing the
invalid
attribute from the Radio component—favoring the Radio Group instead. In talking with the accessibility team we learned:The Radio component itself will apply this deprecated
invalid
attribute inupdated(changes:)
which based on this new understanding, is deprecated behavior. The component should be updated to properly represent invalid state in the Radio Group, not on the individual Radio element.Discussion from PR: https://github.com/adobe/spectrum-web-components/pull/3558#discussion_r1301557678