{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-aria-required-parent-a480ebb13a49","title":"Validate ARIA Roles Hierarchy","summary":"Verify that ARIA roles such as listitem, tab, or menuitem are correctly nested within their required parent roles (like list, tablist, or menu) to ensure semantic structure and accessibility in web applications.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-required-parent-a480ebb13a49","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-aria-required-parent-a480ebb13a49","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-required-parent-a480ebb13a49.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-required-parent-a480ebb13a49\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure that native HTML semantics are checked first before relying on ARIA roles. If native elements are not sufficient, validate that ARIA roles are properly nested and that screen readers announce items as part of a group.","instructions":"---\nname: aria-required-parent\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure ARIA roles are contained by required parent roles. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-required-parent\n---\n\n# Ensure ARIA roles are contained by required parent roles\n\nIf an ARIA child role (like a menu item) is not contained within its required parent role (like a menu), screen readers may fail to announce the item as part of a group, breaking navigation.\n\n## Quick Reference\n\n- Certain roles (like `listitem`) must be owned by specific parent roles (like `list`)\n- Ensure children elements are not orphaned from their semantic containers\n- Maintain valid ARIA hierarchies for menu items, tabs, and list items\n\n## Check\n\nVerify that elements with roles like listitem, tab, or menuitem are correctly nested within their required parent roles.\n\n## Fix\n\nWrap elements with roles that require a specific parent in the appropriate container role (e.g., wrap role=\"listitem\" in role=\"list\").\n\n## Explain\n\nExplain why certain ARIA roles must be nested within specific parent containers to maintain semantic meaning and group navigation.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Ensure ARIA roles are contained by required parent 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-required-parent\n","use_cases":["Checking if menu items are correctly nested within a menu role","Verifying tab elements are contained within a tablist role","Ensuring listitems are properly enclosed in a list role"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/aria-required-parent\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:13:34.000000Z","updated_at":"2026-11-23T04:54:44.000000Z","seo_title":"Validate ARIA Roles Hierarchy for Accessibility","seo_description":"Ensure ARIA roles are properly nested within required parent roles to maintain accessibility and semantic structure in web applications.","seo_keywords":["aria roles hierarchy validation","aria required parent roles","accessibility a11y check","aria role nesting validation"]}}