Multiple Labels
Checks that form fields don't have multiple labels
Checks that form fields don’t have multiple labels
| Rule ID | a11y/form-field-multiple-labels |
| Category | Accessibility |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Solution
Form inputs should have only one associated label. Multiple labels can confuse assistive technology. If you need multiple text descriptions, use aria-describedby for supplementary text instead of multiple labels.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["a11y/form-field-multiple-labels"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/form-field-multiple-labels"]
disable = ["*"]