Skip to content

Rule · Accessibility

Positive tabindex

a11y/tabindexwarnvoid a11yupdated

Why it matters

tabindex > 0 overrides the natural focus order and almost always creates a confusing order.

How to fix it

Use tabindex="0" or restructure the DOM order.

References

void a11y reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.