StateVoicesNational / Spoke

mass-contact text/SMS distribution tool
Other
466 stars 408 forks source link

Bug: Cannot activate menu items with keyboard #1933

Open kcarrandale opened 3 years ago

kcarrandale commented 3 years ago

Describe the bug You cannot activate the links/buttons in the admin area after tabbing to them.

To Reproduce Steps to reproduce the behavior:

  1. Go to /admin/1/campaigns
  2. 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.)
  3. 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:

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:

This bug is kind of related to issue #1928, since it has to do with keyboard navigation in the admin area.

arena commented 3 years ago

this would be a really good improvement for many reasons

you mention the admin ui, but this also applies to the texter ui --- maybe nice to keep them separate in 3 "buckets" because fixing it everywhere is such a big project: global nav (e.g. the menu), the whole admin ui, the whole texter ui

kcarrandale commented 3 years ago

I agree! It definitely makes sense to divide it up like that. I was testing out admin stuff since the instance didn't have any active texting, but texter ui and global nav accessibility is probably slightly higher priority than admin. (Although we want disabled folks to be able to be admins, too!)