Skip to content
Skillpedia
Websites & UI (frontend)75k · #3047

tabs-accessibility

What it does

This skill checks tab widgets on a web page for the right roles, states and keyboard behavior. It is for developers who build tab sections on websites.

When to use it

  • ✓When a page has tabs that cannot be used with the keyboard.
  • ✓When tab markup lacks tablist, tab or tabpanel roles.
  • ✓When building a new tab component that must work for screen reader users.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/tabs-accessibility/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/tabs-accessibility/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I made tabs for my product page but I can't use them with the keyboard. Can you make them accessible?”

5 new skills a week. 1 minute to read.

How it works

The agent checks the tab markup and keyboard behavior. It then adds the needed roles and links, so arrow keys move between tabs and each panel connects to its tab.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Make tabs keyboard navigable

Incorrectly implemented tabs trap keyboard users or leave screen reader users unable to understand the relationship between tabs and their content.

Quick Reference

  • Use tablist, tab, and tabpanel roles
  • Only one tab in the tab order at a time (roving tabindex)
  • Arrow keys navigate between tabs, Tab moves to panel
  • Connect tabs to panels with aria-controls/aria-labelledby

Check

Verify tabs use tablist/tab/tabpanel roles, aria-selected state, and arrow key navigation between tabs.

Fix

Implement tabs with role='tablist', role='tab', role='tabpanel', aria-selected, and proper keyboard interaction patterns.

Explain

Explain the ARIA tabs design pattern and how proper implementation ensures keyboard and screen reader accessibility.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make tabs keyboard navigable. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/tabs-accessibility

FAQ

Which keys should the tabs respond to?

The skill says arrow keys move between tabs, and the Tab key moves focus into the panel.

What is a roving tabindex?

It means only one tab is in the tab order at a time, so users do not have to press Tab through every tab.

Does this depend on how the tabs were built?

The skill checks the final HTML the browser shows, so it applies whatever tool produced the tabs.

Details

Original description by the author

Use when reviewing templates, rendered HTML, or shared components related to Make tabs keyboard navigable. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3047
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills