Skip to main content
Checks that data tables have unique accessible names
Rule IDa11y/table-duplicate-name
CategoryAccessibility
ScopePer-page
Severitywarning
Weight3/10

Solution

When a page has multiple data tables, each should have a unique accessible name to help users distinguish between them. Use <caption>, aria-label, or aria-labelledby with unique text for each table.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/table-duplicate-name"]

Disable all Accessibility rules

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

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/table-duplicate-name"]
disable = ["*"]