Skip to content

ariaHiddenFocusables

Reports elements with aria-hidden='true' that are focusable.

✅ This rule is included in the jsx logical and logicalStrict presets.

Elements with aria-hidden="true" should not be reachable via keyboard navigation. When users can focus elements they cannot perceive with a screen reader, it creates confusion and unexpected behavior.

This rule reports on any element that is focusable -either inherently or via tabIndex- and has aria-hidden="true".

<
any
div
aria-hidden: string
aria-hidden
="true"
tabIndex: string
tabIndex
="0" />
<
any
input
aria-hidden: string
aria-hidden
="true" />
<
any
a
href: string
href
="/"
aria-hidden: string
aria-hidden
="true" />
<
any
button
aria-hidden: string
aria-hidden
="true" />

If you separately use a framework that manages focus state for you such that focusable elements with aria-hidden="true" are never focused, you may prefer to disable this rule.

Made with ❤️‍🔥 around the world by the Flint team and contributors.