Open
Description
Describe the bug
You cannot activate the links/buttons in the admin area after tabbing to them.
To Reproduce
Steps to reproduce the behavior:
- Go to /admin/1/campaigns
- Use the tab key to go to the user icon button or any of the admin menu items (Campaigns, People, Message Review, Tags, Settings, Phone Numbers, or Switch to texter) and press enter or space. (I have not tested all of the buttons/links in the main content, but it's possibly an issue there as well.)
- The link/button doesn't activate.
Expected behavior
The user should be able to activate links/buttons with just a keyboard. See WebAIM: Keyboard Accessibility for more information on specific behaviors depending on item type.
Screenshots
N/A
Platform:
- OS: Windows 10
- Browser: Firefox
- Desktop
- Version 10.0
Additional context
I'm new to this, so I'm not sure what's practical within React/Spoke, but possible fixes for this type of issue include:
- Coding all the menus as unordered lists of links within a nav element. This is the standard accessible format for menus; see Menu Structure for more information. I don't know if this is compatible with the way things are set up, however.
- Add the correct function to a keyboard event, not just onClick. More information: Keyboard-navigable JavaScript widgets. Right now there appears to be stuff happening with onKeyDown, but it isn't activating anything. (It seems to be removing the button animation when the user hits escape?)
This bug is kind of related to issue #1928, since it has to do with keyboard navigation in the admin area.