Select Name
Checks that select elements have accessible names
Checks that select elements have accessible names
| Rule ID | a11y/select-name |
| Category | Accessibility |
| Scope | Per-page |
| Severity | error |
| Weight | 8/10 |
Solution
Select elements need accessible labels. Use <label for='selectId'>Label</label>, wrap in <label>, or use aria-label/aria-labelledby.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/select-name"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/select-name"]
disable = ["*"]