You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* correct the figure numbering
* remove the inline working example
* reuse the existing (but unlinked) `example3.html` to provide the actual working example for simplified accName
Closes#4554
Copy file name to clipboardExpand all lines: techniques/general/G211.html
+6-26Lines changed: 6 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ <h3>Range of inputs with few labels</h3>
132
132
<p>A less common disparity between labels and inputs can occur when a group of radio buttons is set up to elicit a choice across a range. The labels may only be located at each end of the range or may be interspersed at various points in the range.</p>
133
133
<figureid="figure-rate-response">
134
134
<imgsrc="img/rate-response.png" alt="Rate your response, Hated it, Loved it">
135
-
<figcaption>Figure 6 Line of 5 radio buttons with Hated it and Loved it labels at each end</figcaption>
135
+
<figcaption>Figure 5 Line of 5 radio buttons with Hated it and Loved it labels at each end</figcaption>
136
136
</figure>
137
137
138
138
<p>The two labels, "Hated it" and "Loved it", are adjacent to the first and last radio buttons, and should be their accessible names. Speech-input users can speak either of these labels to select a radio button, and then use arrow navigation (e.g., "Press right arrow") to modify the selection. "Rate your response" is the text describing the whole widget and can be associated as the group label (here using <codeclass="language-html">legend</code>). The three middle radio buttons do not have visible labels. In the code example they are given title attributes of "Disliked", "So-so" and "Liked" in order to meet 3.3.2 Labels or Instructions.</p>
@@ -154,37 +154,17 @@ <h3>Range of inputs with few labels</h3>
154
154
<h3>Text in parentheses and punctuation</h3>
155
155
<p>Technique G211 is not intended to complicate existing conventions for the construction of accessible form inputs. As described in the <em>Punctuation and capitalization</em> and <em>Text in parentheses</em> subsections of the Understanding document, information does not always need to be included in the accessible name in an attempt to meet the Label in Name requirement, especially where the text would not normally be spoken when using speech recognition to navigate to controls. Where there are established ways of ensuring information and relationships conveyed visually are present programmatically, it is acceptable to leave text in parentheses and punctuation out of the accessible name.</p>
156
156
<p>The following snippet demonstrates possible techniques mentioned in the Understanding document. Since the required field is programmatically indicated, and the input restrictions on the date are surfaced through <codeclass="language-html">aria-describedby</code>, the asterisk and parenthetical information has been left out of the accessible name.</p>
157
-
157
+
<figureid="figure-rate-response">
158
+
<imgsrc="img/inputs-simplified-accname.png" alt="Two text inputs: one with a label of 'Name' with an asterisk, one with a label of 'Birth date' and, in parentheses, YYYY-MM-DD">
159
+
<figcaption>Figure 6 The "Name" and "Birth date" labels with additional information (and asterisk and an input formatting instruction, respectively)</figcaption>
<pclass="working-example"><ahref="../../working-examples/label-in-name-general/example4.html">Working example of range of inputs</a></p>
167
+
<pclass="working-example"><ahref="../../working-examples/label-in-name-general/example3.html">Working example of inputs inputs with simplified accessible names</a></p>
0 commit comments