Tabbed interfaces are increasingly common on web pages. They make good use of space, and they can be visually intuitive. Using tabs with a screen reader is a different experience though.
When it comes to tabbed interfaces on web pages, there are two disadvantages for screen reader users. The visual clues that establish the tab metaphor are not available, and the required form of interaction isnâ€™t obvious. This makes understanding and using a tabbed interface with a screen reader an interesting experience!
Understanding the tabbed interface
The first point is straight forward. The visual design helps a sighted person to understand the concept of layered content. The use of light and shadow gives a sense of depth, and the tabs are often styled to mimic their real life counterparts.
This problem can be solved with ARIA. The tablist, tabpanel and tab roles make additional information available to screen readers like NVDA and Jaws. A tablist is a set of tabs, and each tab has a corresponding tabpanel.
ARIA bridges the visual gap, and helps blind people understand a little more about the widget theyâ€™re dealing with. Instead of announcing “Dogs”, “Cats” and “Sheep”, screen readers like NVDA and Jaws will announce “Dogs tab”, “Cats tab” and “Sheep tab”.
Using the tabbed interface
The second point is more complex. To some extent the additional information provided through the ARIA indicates what form of interaction is required.
Itâ€™s standard screen reader behaviour to provide auditory clues that let people know what kind of action can be taken. Prefacing link text with the word “Link” sets up the expectation that pressing the Enter key will activate it for example. In this case the word “Tab” sets up the expectation that the set of tabs can be traversed, usually left to right (or vice versa).
The trouble is that it isnâ€™t the action taken once a tab has focus thatâ€™s important. Itâ€™s the action taken to focus on the tab in the first place that makes all the difference.
For a tabbed interface to work, screen readers like Jaws and NVDA need to switch into applications mode. In other words they need to start passing the keystrokes through to the browser, instead of intercepting them to perform screen reader specific commands.
Ordinarily a screen reader intercepts the left/right arrow keys and uses them to move focus backwards/forwards one character at a time. To interact successfully with a set of tabs, the left/right arrow keys need to be ignored by the screen reader and used to move focus backwards/forwards through the set of tabs instead.
Triggering applications mode is the key to getting screen readers like NVDA and Jaws to work with tabbed interfaces. Using the tab key to move focus to one of the tabs is the key to triggering applications mode.
Using tabbed interfaces with a screen reader
This demo was recorded using NVDA 2012.2 beta and Firefox 12.