Modal contains a focusable element that has no interactive content #40380
Labels
⌨️ Accessibility
help wanted
The suggestion or request has been accepted, we need you to help us by sending a pull request.
Inactive
Reproduction link
Steps to reproduce
document.activeElement
<div tabindex="0" style="width: 0px; height: 0px;… hidden; outline: none;" aria-hidden="true"></div>
What is expected?
From MDN:
The modal should automatically focus the close button, or the Ok button, and navigation with Tab or Shift Tab should send focus on interactive elements, not on empty and non-interactive ones
What is actually happening?
An empty and non-interactive element is being focused by default and/or by navigating with Tab or Shift Tab when modal is open
No idea what role that element is serving there, but it's an accessibility problem, and should be removed.
The text was updated successfully, but these errors were encountered: