Skip to content

Commit

Permalink
IDL Button example: Make browser support note more visible (pull #1705)
Browse files Browse the repository at this point in the history
Resolve #1692 by:
* Make browser support note more visible by applying advisement class.
* Clarify browser support note wording.
* Move note inside example so it shows up in codepen.
* add target="_blank" to issue 1692 link in note so it opens from codepen.

Co-authored-by: Matt King <a11yThinker@gmail.com>
  • Loading branch information
carmacleod and mcking65 committed Jan 19, 2021
1 parent a73e98d commit 1160070
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions examples/button/button_idl.html
Expand Up @@ -32,7 +32,7 @@ <h1>Button Examples (IDL Version)</h1>
</p>
<p>
The JavaScript for the example buttons on this page uses the <a href="https://www.w3.org/TR/wai-aria-1.2/#idl-interface">IDL Interface defined in ARIA 1.2</a>.
The purpose of these examples is to illustrate how to use IDL for ARIA Attribute Reflection and provide a test case for browser and assistive technology interoperability.
The purpose of these examples is to illustrate how to use ARIA Attribute Reflection and provide a test case for browser and assistive technology interoperability.
Specifically, the <code>role</code> and <code>ariaPressed</code> attributes are accessed using dot notation instead of <code>setAttribute()</code> and <code>getAttribute()</code>.
In all other respects, these examples are identical to the <a href="button.html">Button Examples</a>.
</p>
Expand All @@ -42,12 +42,14 @@ <h1>Button Examples (IDL Version)</h1>
<h2 id="ex_label">Example</h2>
</div>

<p>
<strong>IMPORTANT:</strong> This example uses features of the draft ARIA 1.2 specification. As a draft specification, it is subject to change. Support provided by browsers or assistive technologies is experimental.
</p>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>

<div id="example">
<p class="advisement">
<strong>IMPORTANT:</strong> This example is coded using syntax that was not introduced until version 1.2 of the ARIA specification.
When using a <a href="https://github.com/w3c/aria-practices/issues/1692" target="_blank">browser that does not yet provide support for ARIA attribute reflection</a>, the buttons will not be styled correctly.
</p>

<p>This <q>Print</q> action button uses a <code>div</code> element.</p>
<div tabindex="0" id="action">Print Page</div>

Expand Down

0 comments on commit 1160070

Please sign in to comment.