Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.squirrelscan.com/llms.txt

Use this file to discover all available pages before exploring further.

Checks that elements with certain roles have required parent roles
Rule IDa11y/aria-required-parent
CategoryAccessibility
ScopePer-page
Severityerror
Weight7/10

Solution

Some ARIA roles must be contained within specific parent roles. For example, role=‘listitem’ must be within role=‘list’, role=‘option’ must be within role=‘listbox’. Restructure your markup to ensure proper parent-child relationships.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/aria-required-parent"]

Disable all Accessibility rules

squirrel.toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/aria-required-parent"]
disable = ["*"]