Editorial: Update link to 'Just use a (native) HTML button' · w3c/using-aria@f644774
2019-07-01
·
via Recent Commits to using-aria:gh-pages
| Original file line number | Diff line number | Diff line change |
|---|
@@ -200,7 +200,7 @@ <h3 tabindex="-1" id="rule1">First Rule of ARIA Use</h3>
|
200 | 200 | <pre class="nohighlight"><code class="block"><<mark>h2</mark> <mark>role=tab</mark>>heading tab</<mark>h2</mark>></code> </pre> |
201 | 201 | <p><strong>Do</strong> this:</p> |
202 | 202 | <pre class="nohighlight"><code class="block"><div <mark>role=tab</mark>><mark></mark><<mark>h2</mark>>heading tab</<mark>h2</mark>><mark></mark></div></code></pre> |
203 | | -<p class="note">If a non-interactive element is used as the basis for an interactive element, developers have to add the semantics using ARIA and the appropriate interaction behavior using scripting. In the case of a button, for example, it is <strong>much better</strong> and easier to <a href="https://blog.paciellogroup.com/2011/04/html5-accessibility-chops-just-use-a-button/">Just use a (native HTML) button</a>.</p> |
| 203 | +<p class="note">If a non-interactive element is used as the basis for an interactive element, developers have to add the semantics using ARIA and the appropriate interaction behavior using scripting. In the case of a button, for example, it is <strong>much better</strong> and easier to <a href="https://developer.paciellogroup.com/blog/2011/04/html5-accessibility-chops-just-use-a-button/">Just use a (native HTML) button</a>.</p> |
204 | 204 | <p class="note">It is OK to use native HTML elements, that have similar semantics to ARIA roles used, for fallback. For example, using HTML <a href="https://www.w3.org/TR/html51/grouping-content.html#elementdef-ul">list elements</a> for the skeleton of an ARIA-enabled, scripted <a href="http://hanshillen.github.io/jqtest/#goto_tree">tree widget</a>.</p></section> |
205 | 205 | <section id="3rdrule"> <h3 tabindex="-1" id="third">Third Rule of ARIA Use</h3> |
206 | 206 | <p>All interactive ARIA controls must be usable with the keyboard. </p> |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。