Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Tabindex should not be recommended #362

Open
jssh opened this issue Jul 14, 2015 · 1 comment
Open

Tabindex should not be recommended #362

jssh opened this issue Jul 14, 2015 · 1 comment

Comments

@jssh
Copy link

jssh commented Jul 14, 2015

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
Copy link
Member

Yes, good point.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants