-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Modal] Fix aria-hidden restore logic #15839
Conversation
Details of bundle changes.Comparing: ac39205...6609918
|
I'm doing a deep dive into the logic. I'm migrating the Modal from the classes API to hooks. Once it's done. I will come back to this pull request :). |
@oliviertassinari Thanks for keeping me posted. |
e86be99
to
454f67a
Compare
I'm looking at the web accessibility guidelines, it seems that the @eps1lon Do you have a preference? |
Sounds expected. WAI-ARIA considers it legacy and most of the libraries haven't caught up. On the other hand I only have access to chrome vox which isn't considered a good screen reader as far as I remember. It will still read content from stacked modals and the body in the WAI-ARIA practices. I don't get this behavior for our SimpleModal demo. But this is only for chrome vox. We should verify that other screen readers work recognize aria-modal as well and make the rest of the page inert. aria-modal would be convenient but if it's not supported by many screenreaders we should stick to the aria-hidden workaround. |
7a596fc
to
6609918
Compare
@eps1lon Thanks for the input. I'm in favor of keeping the current aria-hidden logic waiting for aria-modal to be better supported: https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/. I have refactored the ModalManager code, hopefully, it's simpler. |
@mackersD It's a great first pull request on Material-UI 👌🏻. Thank you for working on it! |
😁 thanks! |
Closes #15837
The logic that hides/shows nodes via the aria-hidden attribute will now exclude nodes that were already hidden before the modal was mounted.