Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 691 Bytes

no-positive-tab-index.md

File metadata and controls

30 lines (21 loc) · 691 Bytes

No positive tab index

Rule Details

Do not positive tabindex as it is error prone and can severely disrupt navigation experience for keyboard users.

Learn more at:

Examples

Incorrect code for this rule 👎

<button tabindex="3"></button>
<button tabindex="1"></button>

Correct code for this rule 👍

<!-- good -->
<button tabindex="0"></button>
<!-- also good -->
<button tabindex="-1"></button>