aria-required-children
What it does
This skill checks composite widgets such as tab lists, menus and trees for the correct child elements. It is for developers building custom tabs, lists or menus from div and span elements.
When to use it
- ✓When you build a custom tab set, menu or listbox from div elements.
- ✓When a screen reader does not announce the number of items in a list or menu.
- ✓When you build a custom list, select or navigation control in place of native HTML.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-required-children/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My custom tab bar uses plain divs. Make sure the tab items have the right roles inside the tab list.”
5 new skills a week. 1 minute to read.
How it works
The agent checks each container role for the child roles it must own, such as tab inside tablist or listitem inside list, and adds presentation roles to wrapper elements where needed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Ensure ARIA roles contain required child roles
Screen readers like NVDA and VoiceOver navigate composite widgets (menus, tabs, trees) by moving between the required child roles. If a tablist contains <div> elements instead of role='tab', the user hears no tabs at all. JAWS announces 'list of 5 items' only when role='listitem' children exist inside role='list'. Without correct nesting, the entire widget becomes opaque to keyboard-only and screen reader users.
Quick Reference
- Container roles mandate specific owned child roles:
tablist→tab,list/listbox→listitem/option,menu/menubar→menuitem,tree→treeitem,grid/rowgroup→row - Missing required children break the accessibility tree so screen readers cannot enumerate items or announce counts
- Use
role='none'orrole='presentation'on purely structural wrapper elements inside the container to avoid invalid nesting - Applies to WAI-ARIA 1.2 required owned elements for composite widget roles
Check
Identify all elements with ARIA container roles (tablist, list, listbox, menu, menubar, tree, treegrid, grid, rowgroup, radiogroup). For each, verify it contains the required owned child roles per the WAI-ARIA spec: tablist must own tab elements; list must own listitem; listbox must own option; menu/menubar must own menuitem, menuitemcheckbox, or menuitemradio; tree must own treeitem; grid must own row (which owns gridcell); radiogroup must own radio. Flag any container roles missing required children.
Fix
For each container role missing its required children: (1) Add the correct role to each child element — e.g., add role='tab' to each tab button inside role='tablist'. (2) If wrapper <div> elements exist between the container and the required children for layout purposes, add role='none' or role='presentation' to those wrappers. (3) Prefer native HTML equivalents where possible: <ul>/<li> instead of role='list'/role='listitem', <select>/<option> instead of role='listbox'/role='option'.
Explain
WAI-ARIA 1.2 defines 'required owned elements' for composite widget roles — these are the child roles a container must contain for the widget to be valid. Screen readers build their understanding of a widget from this structure. A tablist without tab children means a screen reader user in Forms Mode will find nothing to navigate between. A menu without menuitem children will not be announced as a menu at all in some ATs. This is distinct from aria-required-parent, which checks the inverse direction.
Code Review
Review the rendered markup and interactive states that affect Ensure ARIA roles contain required child roles. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/aria-required-children
FAQ
What happens if the child roles are missing?
The skill says screen readers may not announce items or their counts, which breaks navigation.
What is role none for?
It marks purely structural wrappers so they do not break the required structure.
Which roles does it mention as examples?
It mentions tab inside tablist, listitem inside list, option inside listbox and menuitem inside menu.
Details
Original description by the author
Use when applies to custom ARIA widgets using composite roles: tablist, list, listbox, menu, menubar, tree, treegrid, grid, rowgroup, row, radiogroup. Use when reviewing components built with div/span elements that replace native HTML list, select, or nav elements.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2735
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.