Skip to content

Aria-hidden on a focused element #148

@dcdenu4

Description

@dcdenu4

When debugging the application I saw this for the first time in my console:

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.
Element with focus: button
Ancestor with aria-hidden:

<div aria-labelledby=​"bp5-tab-title_Tabs_explore" aria-hidden=​"true" class=​"bp5-tab-panel" id=​"bp5-tab-panel_Tabs_explore" role=​"tabpanel">
  ​<div id=​"explore" data-testid=​"explore">​…​</div>
​</div>​

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions