Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-check that Tabs are properly accessible (ARIA etc.) #20632

Closed
cvrebert opened this issue Sep 5, 2016 · 6 comments
Closed

Double-check that Tabs are properly accessible (ARIA etc.) #20632

cvrebert opened this issue Sep 5, 2016 · 6 comments

Comments

@cvrebert
Copy link
Collaborator

cvrebert commented Sep 5, 2016

Refs #13554.
CC: @patrickhlauke

@davidscotson
Copy link

#19738 might also be relevant here.

@thbt
Copy link

thbt commented Jan 31, 2017

Regarding tabs accessibility, will you implement keyboard support ? Or will it be up to the user ?

@patrickhlauke
Copy link
Member

coming in monstrously late on this:

  • tabs now have relevant ARIA attributes, however
  • tabs do not currently implement the expected keyboard behavior

at a minimum, tabs should behave as follows (from https://www.w3.org/TR/wai-aria-practices/#tabpanel)

For the tab list:

  • Tab: When focus moves into the tab list, places focus on the active tab element . When the tab list contains the focus, moves focus to the next element in the page tab sequence outside the tablist, which is typically either the first focusable element inside the tab panel or the tab panel itself.

(side note: this means only the currently active tab should receive focus - currently, all tabs receive focus)

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 (See note below).
  • 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 (See note below).

When focus is on a tab in a tablist with either horizontal or vertical orientation:

  • Space or Enter: Activates the tab if it was not activated automatically on focus.

@mdo
Copy link
Member

mdo commented Dec 17, 2018

@twbs/js-review Is this something you could take on to adjust the keyboard behavior and focus?

@XhmikosR
Copy link
Member

I guess we need some help about this.

@patrickhlauke
Copy link
Member

will tackle this at last over here #28918

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

No branches or pull requests

6 participants