Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.squirrelscan.com/llms.txt

Use this file to discover all available pages before exploring further.

Checks that form fields don’t have multiple labels
Rule IDa11y/form-field-multiple-labels
CategoryAccessibility
ScopePer-page
Severitywarning
Weight5/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
[rules]
disable = ["a11y/form-field-multiple-labels"]

Disable all Accessibility rules

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

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/form-field-multiple-labels"]
disable = ["*"]