It remove aria-hidden attribute for hidden element on dialog closing
See original GitHub issueWhen we open a dialog, it put aria-hidden
attribute to true
for each element of document other than dialog itself.
And when we close the dialog box, aria-hidden
attribute is removed to each of them.
But when an element is aria-hidden="true"
yet before opening, a11y-dialog remove the attribute at closing, but it shouldn’t.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Do I need to use aria-hidden on an element whose visibility ...
Yes, you should add aria-hidden=true to your .page if you're not hiding it with css, but just obscuring it with like z-index ....
Read more >aria-hidden - Accessibility - MDN Web Docs - Mozilla
The aria-hidden attribute can be used to hide non-interactive content from the accessibility API. Adding aria-hidden="true" to an element ...
Read more >Modals should not have aria-hidden attribute on a dialog ...
My understanding is that Bootstrap overcome this issue by removing aria-hidden="true" dynamically when modal is shown using Javascript (but why ...
Read more >Element with aria-hidden has no content in sequential ...
This rule checks that elements with an aria-hidden attribute do not contain elements that are part of the sequential focus navigation and focusable....
Read more >Accessible hiding and aria-hidden example
The conventional way is to use CSS ( display:none; and visibility:hidden; ) or the HTML 5 `hidden` attribute. These properties hide elements ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this issue should be fixed by the latest change https://github.com/edenspiekermann/a11y-dialog/pull/117
Still facing this issue almost 2 years after it has been reported.
If I find some time I’ll try to propose a fix and Pull Request