Skip to content

Commit 1160070

Browse files
carmacleodmcking65
andauthored
IDL Button example: Make browser support note more visible (pull #1705)
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 <[email protected]>
1 parent a73e98d commit 1160070

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/button/button_idl.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1>Button Examples (IDL Version)</h1>
3232
</p>
3333
<p>
3434
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>.
35-
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.
35+
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.
3636
Specifically, the <code>role</code> and <code>ariaPressed</code> attributes are accessed using dot notation instead of <code>setAttribute()</code> and <code>getAttribute()</code>.
3737
In all other respects, these examples are identical to the <a href="button.html">Button Examples</a>.
3838
</p>
@@ -42,12 +42,14 @@ <h1>Button Examples (IDL Version)</h1>
4242
<h2 id="ex_label">Example</h2>
4343
</div>
4444

45-
<p>
46-
<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.
47-
</p>
4845
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
49-
46+
5047
<div id="example">
48+
<p class="advisement">
49+
<strong>IMPORTANT:</strong> This example is coded using syntax that was not introduced until version 1.2 of the ARIA specification.
50+
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.
51+
</p>
52+
5153
<p>This <q>Print</q> action button uses a <code>div</code> element.</p>
5254
<div tabindex="0" id="action">Print Page</div>
5355

0 commit comments

Comments
 (0)