Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Should warn on focusable with no role #82

Open
ghost opened this issue Mar 12, 2014 · 1 comment
Open

Should warn on focusable with no role #82

ghost opened this issue Mar 12, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 12, 2014

If an author creates an item on the page that's focusable by adding tabindex=0, and it's not already a form control, it should have a role - and specifically it should have a "widget" role like button or checkbox or one of the "composite control" roles grid, griditem, listbox, or option.

This should probably be an Error and not a warning if we're sure it has a click handler - because JAWS and NVDA will not make an Enter or Space trigger a mouse click if you focus on that item.

If we don't know if it has a click handler, it could be a warning. Probably better to have a role, but if it's not really a widget that has an action, then it won't affect anything.

@alice
Copy link
Contributor

alice commented Jan 9, 2015

Implementation note: also check for an implicit role.

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

No branches or pull requests

2 participants