Skip to content

Conversation

Yashkanekar
Copy link
Contributor

This PR closes #46673

  • Added role="dialog" to identify the temporary drawer as a dialog element
  • Added aria-modal="true" to indicate temporary drawer is a modal

@mui-bot
Copy link

mui-bot commented Aug 7, 2025

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 🔺+56B(+0.01%) 🔺+14B(+0.01%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 9dbf74f

@zannager zannager added the scope: drawer Changes related to the drawer. label Aug 8, 2025
@zannager zannager requested a review from siriwatknp August 8, 2025 12:02
@siriwatknp
Copy link
Member

@sai6855 Would you mind guiding the author to add a test for this PR?

Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@Yashkanekar Thanks for the pull request. Code implementation looks good. Can you add a test case?

@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Drawer]: add dialog role and aria-modal for temporary variant accessibility [material-ui][Drawer] Add dialog role and aria-modal for temporary variant Aug 14, 2025
Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 Great job

@siriwatknp siriwatknp merged commit 009a67a into mui:master Aug 18, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y scope: drawer Changes related to the drawer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Drawer][a11y] temporary variant should have the same aria-* and role as the Dialog
5 participants