inappropriate-group-label
Rule Severity : Serious
Description
Group field labels must clearly describe the purpose of the group. This ensures that users, especially those relying on assistive technologies, can understand the context and relationship of the grouped fields.
The inappropriate-group-label
rule aligns with WCAG Success Criterion 2.4.6 (Headings and Labels), which requires that headings and labels describe their topic or purpose. In this particular rule, labels are considered, not headings.
Examples
In the following example, the group label is vague and does not accurately describe the purpose of the grouped fields. This violates the inappropriate-group-label
rule because the label does not provide meaningful context.
In the following corrected example, the group label is descriptive and clearly indicates the purpose of the grouped fields:
How to fix?
To fix violations of the inappropriate-group-label
rule, follow these steps:
- Identify all group labels on your webpage.
- Ensure that each label accurately describes the purpose of the group.
- Use clear and concise language that reflects the context of the grouped fields.
- Avoid vague or generic labels that do not provide meaningful information.
Reference
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!