Drawer with keepMounted has incorrect aria-hidden value #12710
Labels
accessibility
a11y
component: drawer
This is the name of the generic UI component, not the React module!
When using the following snippet:
The
aria-hidden
attribute logic gets applied incorrectly.Expected Behavior
When the drawer is open, the content gets
aria-hidden="true"
and drawer modal getsaria-hidden="false"
.When drawer is closed, the content gets
aria-hidden="false"
and drawer modal getsaria-hidden="true"
.Current Behavior
When the drawer is open, the both the content and drawer modal get
aria-hidden="true"
(resulting in a screen reader stating that there is no content).When drawer is closed, both the content and drawer modal get
aria-hidden="false"
.Steps to Reproduce
Link: https://material-ui.com/
Context
To make temporary drawer apps friendly to screen readers.
Your Environment
The text was updated successfully, but these errors were encountered: