focusable-tabindex-style
If set, all focusable elements must have a negative or 0 tabindex attribute, if any.
Focusable elements are :
- natively focusable elements (
button,input,select,textarea) a,areaelements with an href value
Reasoning: W3C, WCAG 2.0
The following patterns are considered violations:
<button tabindex="1">Button</button>
<a href="#" tabindex="12">Link</a>
The following patterns are not considered violations:
<button tabindex="0">Button</button>
<a href="#" tabindex="-1">Link</a>