Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ariaPublic

Commitabbef89

Browse files
brennanyoungscottaoharajnurthencookiecrookadampage
authored
role=note fleshed out a little. (#1639)
Language a little less terse. Explicit mention of aria-details to associate a note with another element.Co-authored-by: Brennan Young <brennan.young@laerdal.com>Co-authored-by: Scott O'Hara <scottaohara@users.noreply.github.com>Co-authored-by: James Nurthen <jnurthen@users.noreply.github.com>Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>Co-authored-by: Adam Page <adamfpage@gmail.com>
1 parentaf84654 commitabbef89

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

‎index.html‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5925,7 +5925,32 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
59255925
<div class="role" id="note">
59265926
<rdef>note</rdef>
59275927
<div class="role-description">
5928-
<p>A section whose content is parenthetic or ancillary to the main content of the resource.</p>
5928+
<p>A <rref>section</rref> whose content represents additional information or parenthetical context to the primary content it supplements.</p>
5929+
<p>A <code>note</code> is content provided by the author of the page or document, it is not to be used for providing reactions or suggestions. For these purposes, please review <rref>comment</rref> and <rref>suggestion</rref>.</p>
5930+
<p>When used within the normal flow of a page's content, a <code>note</code> has an implicit association with the content that it supplements. The following example demonstrates using a <code>note</code> to call out additional information in the natural reading order of a page:</p>
5931+
<pre class="example highlight">
5932+
&lt;p>... the following results outline support for the tested features.&lt;/p>
5933+
&lt;div role="note">
5934+
&lt;p>Please keep in mind that at the time of publishing this page all results were accurate.&lt;/p>
5935+
&lt;p>If you find any variations in results, please let us know!&lt;/p>
5936+
&lt;/div>
5937+
&lt;p>...&lt;/p>
5938+
</pre>
5939+
<p>In cases where an element with role <rref>note</rref> has been determined to need a programmatic association with the content it supplements, authors can use one of the following mechanisms to associate the elements:</p>
5940+
<ul>
5941+
<li>If the <code>note</code> contains structured or interactive content (for example, a link, button, list, table, etc.) use <pref>aria-details</pref>.</li>
5942+
<li>If the <code>note</code> is brief and consists of static text, use <pref>aria-describedby</pref>.</li>
5943+
</ul>
5944+
<pre class="example highlight">
5945+
&lt;!-- using aria-details to reference a note containing a link -->
5946+
...
5947+
&lt;button aria-details="info-note">Get Started&lt;/button>
5948+
...
5949+
&lt;div role="note" id="info-note">
5950+
&lt;p>Need more information before you get started?&lt;/p>
5951+
&lt;p>Visit our &lt;a href="...">product description page&lt;/a> to get all the information you need.&lt;/p>
5952+
&lt;/div>
5953+
</pre>
59295954
</div>
59305955
<table class="role-features">
59315956
<caption>Characteristics:</caption>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp