We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/Radio/Radio.tsx#L277C5-L277C5 https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/RadioGroup/RadioGroup.tsx#L88
The current behaviour does not specify a default role for the radio component, but does for the radiogroup.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/radiogroup_role
A default role of 'radio' should be specified for radio.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/radio_role
I'm unable to use '@testing-library/react' to search for the specific radio buttons via role to confirm if they are checked in a consistent manner.
No response
The text was updated successfully, but these errors were encountered:
As a temporary workaround I am manually specifying the role on the radio elements, but it would be better to have this fixed at the library level.
Sorry, something went wrong.
After digging a bit further, it looks like the role can be inferred by the combination of an input with the 'radio' type
https://www.w3.org/TR/html-aria/#docconformance
No branches or pull requests
Duplicates
Latest version
Steps to reproduce 馃暪
https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/Radio/Radio.tsx#L277C5-L277C5
https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/RadioGroup/RadioGroup.tsx#L88
Current behavior 馃槸
The current behaviour does not specify a default role for the radio component, but does for the radiogroup.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/radiogroup_role
Expected behavior 馃
A default role of 'radio' should be specified for radio.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/radio_role
Context 馃敠
I'm unable to use '@testing-library/react' to search for the specific radio buttons via role to confirm if they are checked in a consistent manner.
Your environment 馃寧
No response
The text was updated successfully, but these errors were encountered: