| Rule ID | a11y/label-content-name-mismatch |
| Category | Accessibility |
| Scope | Per-page |
| Severity | error |
| Weight | 7/10 |
Solution
For controls with visible labels, the accessible name should contain the visible text. Voice control users say what they see - if the accessible name doesn’t include the visible label, voice commands won’t work. Example: A button showing ‘Search’ should not have aria-label=‘Find products’.Enable / Disable
Disable this rule
squirrel.toml
Disable all Accessibility rules
squirrel.toml
Enable only this rule
squirrel.toml