The Carbon Tabs component could benefit from adding Home, End, and Space key behavior as listed in the Keyboard Interaction section of the ARIA Practices Guide for Tabs.
Rationale:
There is also an issue with the disabled Tab 4. When navigating with a screen reader using the Arrow keys VO does not announce that Tab 4 is disabled and the content of the tab can receive focus.
Since Tab 4 is no longer disabled this comment can be disregarded.
@dakahn - Please consider changing the label on this issue from enhancement to bug for the following reason. When testing with VO on macOS Mojave with Chrome.
The expected keyboard navigation is as follows (also see ARIA APG Example for Tabs):
Actual result:
Right, will do. Set priority to medium. Happy to escalate if you feel like this is a high priority issue.
I agree with @snidersd that single-tab-stop Tabs components are better for keyboard users because they can navigate through and past the tab with fewer keystrokes. Many keyboard users (particularly screen reader users) expect to use arrow keys to traverse through the tabs.
Note that the Carbon Tabs component is closer in behavior to the 2nd APG example ("Manual Activation") because the tabs are activated using space or enter key.
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. Thanks for your contributions.
Keeping this open. Tabs should be modified to be a single tab stop in line with the APG example. 👍
Please also remove nav wrapper from Tabs. See https://github.com/carbon-design-system/carbon-components-react/issues/2171 for details.
it looks like our Tabs component has gotten a few updates since this ticket was open. just confirming, are all of the original points still valid for the current component version?
Still relevant 🌷
I've got a WIP PR here that addresses some of these concerns:
https://github.com/carbon-design-system/carbon/pull/2852
Most helpful comment
@dakahn - Please consider changing the label on this issue from enhancement to bug for the following reason. When testing with VO on macOS Mojave with Chrome.
The expected keyboard navigation is as follows (also see ARIA APG Example for Tabs):
Actual result: