Skip to content

ariaActiveDescendantTabIndex

Reports elements with aria-activedescendant without tabIndex.

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

aria-activedescendant is used to manage focus within a composite widget. Elements with this attribute should be tabbable, either through an inherent tabIndex (like <input>) or an explicit tabIndex attribute.

Without proper tabIndex, keyboard users cannot reach the element to interact with it.

<
any
div
aria-activedescendant: string
aria-activedescendant
={
const someID: string
someID
} />;
<
any
span
aria-activedescendant: string
aria-activedescendant
="item-1" />

If you’re not using aria-activedescendant or have a custom focus management system, you can disable this rule.

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