-
Notifications
You must be signed in to change notification settings - Fork 332
Description
Hello,
I would like to request clarification on the scope of “visible label” in SC 2.5.3 Label in Name, as we are encountering different interpretations in real-world projects.
1. Summary of the Issue
In the following UI pattern:
- There is one visible text label (positioned visually like a label)
- There are two or more input fields associated with that text
…it is unclear how strictly “visible label” should be interpreted for SC 2.5.3, especially when applying a proximity-based or conservative definition.
We reviewed the Understanding section, but it does not explicitly address cases where one visible text applies to multiple interactive components.
- Identifying label text for components
https://www.w3.org/WAI/WCAG22/Understanding/label-in-name.html#identifying-label-text-for-components - This pattern also does not appear in the ACT Rule 2ee8b8 examples:
https://www.w3.org/WAI/standards-guidelines/act/rules/2ee8b8/proposed/
2. Minimal Example
Example 1: “Enter Email Address”
One visible text:
Enter Email Address
Associated input components:
- Email ID text field
- Email domain text field
- Domain selection combobox
Example 2: “Phone Number”
One visible text:
Phone Number
Associated components:
- Country code combobox
- Phone number text field
3. Two Contradicting Interpretations in Practice
Interpretation A — “No visible label for each input”
- Placeholder text or default values are not visible labels.
- Because each input field does not have its own 1:1 visible label,
these controls are not considered applicable to SC 2.5.3.
Interpretation B — “Single group label applies to all inputs”
- The left text (“Enter Email Address”, “Phone Number”) is treated as the visible label for all associated input fields.
- Therefore, the accessible name for each input should begin with the visible text.
e.g.,
“Enter Email Address ID”
“Enter Email Address Domain”
4. Questions (Areas Requiring Clarification in the Standard)
Q1.
Should the “visible label” in SC 2.5.3 be interpreted as a concept that must be in a 1:1 relationship with each interactive element?
Or is it acceptable for a single visible text to cover multiple related input fields?
Q2.
When several input fields are grouped under one visible text label,
does each input’s accessible name need to start with that visible label to meet SC 2.5.3?
Or is it sufficient for each field to use its own descriptive name, such as:
- “Email ID”
- “Email Domain”
even if they do not begin with the shared visible text?
Q3.
Considering the intent of SC 2.5.3 (enabling speech-input users to activate elements using the visible text they see),
is there a recommended pattern or best practice for multi-field structures like these?
If helpful, I can also provide representative code samples.
Thank you very much for your guidance.