Elements should not have tabindex greater than 0, which disrupts natural tab order
keyboard-accessible/tabindex · Best practice
Elements should not have tabindex greater than 0, which disrupts natural tab order.
Positive tabindex values force elements to the front of the tab order regardless of DOM position, creating unpredictable navigation for keyboard users. Use tabindex='0' to add elements to the natural tab order, or tabindex='-1' to make elements programmatically focusable but not in tab order. Rely on DOM order for tab sequence.
Scan a page or repo for issues like this · All rules
Introduced in @accesslint/core v0.8.0