amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

No Keyboard Accessibility for 'Tab Panels with amp-selector'

Open mdvb1001 opened this issue 6 years ago • 2 comments

Describe the new feature or change to an existing feature you'd like to see

The tabs to the tab panels should be navigable with the keyboard arrow keys, as stipulated by W3.org (https://www.w3.org/TR/wai-aria-practices-1.1/#tabpanel)

"When focus is on a tab element in a horizontal tab list:

  • Left Arrow: moves focus to the previous tab. If focus is on the first tab, moves focus to the last tab. Optionally, activates the newly focused tab [...].

  • Right Arrow: Moves focus to the next tab. If focus is on the last tab element, moves focus to the first tab. Optionally, activates the newly focused tab [...]."

Describe alternatives you've considered

I could add some custom JS via amp-script, but this is less than ideal as it requires a fair amount of code -- we could hit the size limit imposed by amp-script.

Additional context

Add any other context or screenshots about the feature request here.

mdvb1001 avatar Mar 23 '20 15:03 mdvb1001

Seems like this issue has been fixed or is working as intended. I'm able to use arrow keys to focus on next/prev tabs and use enter/space key to select a tab. By design the currently selected tab does not show the focus outline when focussed.

dmanek avatar Oct 22 '20 22:10 dmanek

Closing as we are not able to reproduce the original issue, please re-open if you are still encountering the issue. :)

caroqliu avatar Oct 23 '20 16:10 caroqliu