accessdigital / wilson

A Drupal installation profile produced by Access. New installations should use https://github.com/accessdigital/drupal-template
https://www.weareaccess.co.uk
4 stars 1 forks source link

Accessibility improvements to tab component #36

Closed rob-howells closed 1 year ago

rob-howells commented 1 year ago

Background / motivation

Improve the accessibility of the adaptive panels, specifically the tabs aspect.

Keyboard tab navigation

Although previously all tabs and content could be reached using a keyboard, the design pattern wasn't ideal - a user would need to tab through all tab items in order to access content for a particular tab panel.

To address this, when a user focuses on a tab item, the next item in the tab order is now within the tab panel itself (rather than an adjacent tab).

In order to navigate between tabs items in the tab list:

Additional changes