Editorial team ·

Try the tab panel with a thumb and a keyboard

Editorial cover: Try the tab panel with a thumb and a keyboard
AI-generated illustration.

On a phone, the “Policies” tab is half hidden off to the right. Someone swipes along the page and accidentally moves past the panel. Set up a narrow view and check the whole route: finding a tab, selecting it, and reading the content that appears below it.

Keep the active tab connected to its text

The practice panel has Details, Dates, and Policies. Select each tab with a tap and see whether the selected label and the panel heading agree. Try with enlarged text too. A line break in the label can change how easy it is to reach.

Try the keyboard next. In the WAI tabs pattern, Tab enters the tab list on the active tab. Arrow keys move among tabs in the list, and activation may follow focus or happen on Enter or Space depending on the design.

Use a screen reader to check the selected state and panel label. If touch and keyboard appear to pick different tabs, record one route at a time and check which panel stays visible in each case.

If the strip needs to scroll, make sure there is a way to discover the off-screen tab and bring it into view. Then read a paragraph inside the panel. The last step confirms you reached the information, not just the label.

Practice panel checks at a narrow width
Mode What you do What you check
Touch Tap Policies Policies is selected and its panel appears
Keyboard Move from Details to Dates using the tab list controls Focus is visible and activation matches the pattern
Screen reader Read the selected tab and its panel Selected state and panel label are understandable

Questions and answers

Do arrows have to activate each tab?
The pattern allows either automatic or manual activation. Test the design’s chosen behaviour and ensure the same controls remain usable.
Should I report an off-screen tab if I can still drag to it?
Record how someone finds it with touch, keyboard, and a screen reader. Each route may reveal a different problem.
What should a screenshot include?
Show the strip and the top of the active panel together so the selected label can be matched to the visible content.

Test access to the last tab at phone width

  1. Check the narrow layout
    • Try the last tab at phone width.
    • Repeat after increasing the text size.
  2. Switch input methods
    • Follow the tab list with the keyboard.
    • Listen for the selected state and then read the panel.

W3C ARIA Authoring Practices Guide: Tabs Pattern