Skip to content

Commit 7508624

Browse files
chlanecookiecrookscottaoharajnurthen
authored
Editorial: Provides more current examples of presentational elements in textboxes (#1830)
Co-authored-by: James Craig <[email protected]> Co-authored-by: Scott O'Hara <[email protected]> Co-authored-by: James Nurthen <[email protected]>
1 parent e88317c commit 7508624

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9086,6 +9086,12 @@ <h5>Presentational Role Inheritance</h5>
90869086
<div class="role-description">
90879087
<p>A type of input that allows free-form text as its value.</p>
90889088
<p>If the <pref>aria-multiline</pref> <a>attribute</a> is <code>true</code>, the <a>widget</a> accepts line breaks within the input, as in an HTML <code>textarea</code>. Otherwise, this is a simple text box. The intended use is for languages that do not have a text input <a>element</a>, or cases in which an element with different <a>semantics</a> is repurposed as a text field.</p>
9089+
<p>Authors MUST limit the children of a textbox to non-interactive, entirely presentational elements such as icons used to visually convey information that is already exposed in an accessible manner. Examples include:</p>
9090+
<ul>
9091+
<li>an error icon, where the containing textbox has been provided an <sref>aria-invalid</sref>, <sref>aria-errormessage</sref>, or both attributes;</li>
9092+
<li>an icon of a user silhouette, where the textbox is also visibly labeled or provided an accessible name of "name" or "username"; and</li>
9093+
<li>a graphical status indicator, such as a gauge to represent characters remaining, which represents dynamically updating text available outside of the textbox.</li>
9094+
</ul>
90899095
<!-- keep the following para synced with its equivalent in #aria-multiline -->
90909096
<p class="note">In most user agent implementations, the default behavior of the <kbd>ENTER</kbd> or <kbd>RETURN</kbd> key is different between the single-line and multi-line text fields in HTML. When user has focus in a single-line <code>&lt;input type="text"&gt;</code> element, the keystroke usually submits the form. When user has focus in a multi-line <code>&lt;textarea&gt;</code> element, the keystroke inserts a line break. The <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> <code>textbox</code> role differentiates these types of boxes with the <pref>aria-multiline</pref> attribute, so authors are advised to be aware of this distinction when designing the field.</p>
90919097
</div>
@@ -9161,11 +9167,11 @@ <h5>Presentational Role Inheritance</h5>
91619167
</tr>
91629168
<tr>
91639169
<th class="role-childpresentational-head" scope="row">Children Presentational:</th>
9164-
<td class="role-childpresentational"> </td>
9170+
<td class="role-childpresentational"> </td>
91659171
</tr>
91669172
<tr>
91679173
<th class="role-presentational-inherited-head" scope="row">Inherits Presentational:</th>
9168-
<td class="role-presentational-inherited"> </td>
9174+
<td class="role-presentational-inherited"> </td>
91699175
</tr>
91709176
</tbody>
91719177
</table>

0 commit comments

Comments
 (0)