-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[docs][Dialog] Fix form dialog uses ARIA roles on incompatible elements #46307
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs][Dialog] Fix form dialog uses ARIA roles on incompatible elements #46307
Conversation
Netlify deploy previewhttps://deploy-preview-46307--material-ui.netlify.app/ Bundle size report@mui/material parsed: 0B(0.00%) gzip: 0B(0.00%) DetailsShow details for 100 more bundles (86 more not shown)@mui/lab/AdapterDateFns parsed: 0B(0.00%) gzip: 0B(0.00%) |
DiegoAndai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ZeeshanTamboli!
Closes #46279
Closes #41100
The
formelement was incorrectly added as aPapercomponent which hasrole="dialog"in #40470. This violates accessibility rules, asformelements can't have ARIA roles likedialog(W3C spec, MDN).This fix removes the accessibility error from #46279 and #41100:
Before: https://mui.com/material-ui/react-dialog/#form-dialogs
After: https://deploy-preview-46307--material-ui.netlify.app/material-ui/react-dialog/#form-dialogs