quailjs / quail

Accessibility testing in the browser and on the server.
http://quailjs.org
Other
300 stars 44 forks source link

Tabindex should not be recommended #362

Open jssh opened 9 years ago

jssh commented 9 years ago

Four tests suggest form elements require a valid "tabindex" attribute. I believe this is not correct. In almost all circumstances, WebAIM recommends against using tabindex(http://webaim.org/techniques/keyboard/tabindex). The best way to fix tab order and reading order is to use focusable HTML elements wherever possible andalter the order of the content in the markup itself, rather than try to hide the problem by using tabindex, then use CSS, if needed, to control the visual presentation. See also (http://www.paciellogroup.com/blog/2014/08/using-the-tabindex-attribute/)

jessebeach commented 8 years ago

Yes, good point.

Maybe we update it to warn against tabindices other than -1 or 0?