Skip to main content
Checks that treeitem elements have accessible names
Rule IDa11y/aria-treeitem-name
CategoryAccessibility
ScopePer-page
Severityerror
Weight7/10

Solution

Treeitem elements must have accessible names. Add text content, aria-label, or aria-labelledby. The text content within the treeitem typically serves as its name.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/aria-treeitem-name"]

Disable all Accessibility rules

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

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/aria-treeitem-name"]
disable = ["*"]