Skip to content

Commit 9cb71e9

Browse files
authored
add note to aria-roledescription (#1666)
adds a note indicating that `aria-roledescription` may not be conveyed depending on the element/AT defaults or user settings. closes #1651
1 parent f3f3913 commit 9cb71e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -12773,11 +12773,12 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1277312773
<p><a>Defines</a> a human-readable, author-localized description for the <a>role</a> of an <a>element</a>.</p>
1277412774
<p>Some <a>assistive technologies</a>, such as screen readers, present the role of an element as part of the user experience. Such assistive technologies typically localize the name of the role, and they may customize it as well. Users of these assistive technologies depend on the presentation of the role name, such as "region," "button," or "slider," for an understanding of the purpose of the element and, if it is a widget, how to interact with it.</p>
1277512775
<p>The <code>aria-roledescription</code> property gives authors the ability to override how assistive technologies localize and express the name of a role. Thus inappropriately using <code>aria-roledescription</code> may inhibit users' ability to understand or interact with an element. Authors SHOULD limit use of <code>aria-roledescription</code> to clarifying the purpose of non-interactive container roles like <rref>group</rref> or <rref>region</rref>, or to providing a <em>more specific</em> description of a <rref>widget</rref>.</p>
12776-
<p> When using <code>aria-roledescription</code>, authors SHOULD also ensure that:</p>
12776+
<p>When using <code>aria-roledescription</code>, authors SHOULD also ensure that:</p>
1277712777
<ol>
1277812778
<li>The element to which <code>aria-roledescription</code> is applied has a valid <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> role or has an implicit WAI-ARIA role semantic.</li>
1277912779
<li>The value of <code>aria-roledescription</code> is not empty or does not contain only whitespace characters.</li>
1278012780
</ol>
12781+
<p class="note">Depending on the assistive technology, user verbosity settings, or other factors, certain elements' role descriptions might not be conveyed. If specifying <code>aria-roledescription</code> on such elements, then the custom role descriptions may also not be conveyed by these assistive technologies.</p>
1278112782
<p>User agents MUST NOT expose the <code>aria-roledescription</code> property if any of the following conditions exist:</p>
1278212783
<ol>
1278312784
<li>The element to which <code>aria-roledescription</code> is applied has an explicit or implicit WAI-ARIA role where <code>aria-roledescription</code> is <a href="#prohibitedattributes">prohibited</a>.</li>

0 commit comments

Comments
 (0)