Skip to content
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

[Dialog] Add the aria-modal="true" by default #44118

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

mnajdova
Copy link
Member

The Dialog component is implemented as a modal dialog, but it was missing the aria-modal="true". This PR adds it by default, but also adds the option for people to remove it if for some reason they need to override it. This makes the component compatible with SC 4.1.2

@mnajdova mnajdova added accessibility a11y component: dialog This is the name of the generic UI component, not the React module! labels Oct 16, 2024
@mui-bot
Copy link

mui-bot commented Oct 16, 2024

Netlify deploy preview

https://deploy-preview-44118--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against 6eeed60

@mnajdova mnajdova requested review from michaldudak and removed request for michaldudak and siriwatknp October 21, 2024 08:21
Copy link
Member

@aarongarciah aarongarciah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mnajdova mnajdova merged commit a0fbf28 into mui:master Oct 22, 2024
22 checks passed
@mnajdova mnajdova mentioned this pull request Oct 22, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: dialog This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants