|
525
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
<head> |
|
|
4 |
<meta charset="utf-8"> |
|
|
5 |
<title>Example: Accessible Toolbar</title> |
|
|
6 |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic"> |
|
|
7 |
<link rel="stylesheet" href="../../build/cssgrids/cssgrids-min.css"> |
|
|
8 |
<link rel="stylesheet" href="../assets/css/main.css"> |
|
|
9 |
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> |
|
|
10 |
<link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> |
|
|
11 |
<script src="../../build/yui/yui-min.js"></script> |
|
|
12 |
|
|
|
13 |
</head> |
|
|
14 |
<body> |
|
|
15 |
<!-- |
|
|
16 |
<a href="https://github.com/yui/yui3"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a> |
|
|
17 |
--> |
|
|
18 |
<div id="doc"> |
|
|
19 |
<div id="hd"> |
|
|
20 |
<h1><img src="http://yuilibrary.com/img/yui-logo.png"></h1> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
<a href="#toc" class="jump">Jump to Table of Contents</a> |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
<h1>Example: Accessible Toolbar</h1> |
|
|
27 |
<div class="yui3-g"> |
|
|
28 |
<div class="yui3-u-3-4"> |
|
|
29 |
<div id="main"> |
|
|
30 |
<div class="content"><div class="intro"> |
|
|
31 |
<p> |
|
|
32 |
This example illustrates how to create an accessible toolbar using the |
|
|
33 |
Focus Manager Node Plugin and Node's support for the |
|
|
34 |
<a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA Roles and States</a>. |
|
|
35 |
</p> |
|
|
36 |
</div> |
|
|
37 |
|
|
|
38 |
<div class="example"> |
|
|
39 |
<style scoped> |
|
|
40 |
.yui3-toolbar { |
|
|
41 |
border: solid 1px #999; |
|
|
42 |
background-color: #ccc; |
|
|
43 |
margin: .25em; |
|
|
44 |
overflow: auto; |
|
|
45 |
} |
|
|
46 |
|
|
|
47 |
.yui3-toolbar-button { |
|
|
48 |
display: inline-block; |
|
|
49 |
border-width: 1px 0; |
|
|
50 |
border-style: solid; |
|
|
51 |
border-color: #808080; |
|
|
52 |
background-color: #dfdfdf; |
|
|
53 |
margin: .25em; |
|
|
54 |
font-size: 85%; /* 11px */ |
|
|
55 |
} |
|
|
56 |
|
|
|
57 |
.first-child { |
|
|
58 |
margin-left: .5em; |
|
|
59 |
} |
|
|
60 |
|
|
|
61 |
.yui3-toolbar-button span { |
|
|
62 |
display: inline-block; |
|
|
63 |
border-width: 0 1px; |
|
|
64 |
border-style: solid; |
|
|
65 |
border-color: #808080; |
|
|
66 |
margin: 0 -1px; |
|
|
67 |
*position: relative; /* Necessary to get negative margins working in IE */ |
|
|
68 |
*left: -1px; |
|
|
69 |
} |
|
|
70 |
|
|
|
71 |
.yui3-toolbar-button span span { |
|
|
72 |
display: inline-block; |
|
|
73 |
border: solid 1px #b6b6b6; |
|
|
74 |
margin: 0; |
|
|
75 |
*position: static; |
|
|
76 |
} |
|
|
77 |
|
|
|
78 |
.yui3-toolbar-button input { |
|
|
79 |
border: none; |
|
|
80 |
margin: 0; |
|
|
81 |
padding: 4px 4px 4px 24px; |
|
|
82 |
*overflow: visible; /* Remove superfluous padding for IE */ |
|
|
83 |
background: transparent url(../assets/node-focusmanager/icons.png) no-repeat; |
|
|
84 |
} |
|
|
85 |
|
|
|
86 |
#add-btn input { |
|
|
87 |
background-position: 4px -102px; |
|
|
88 |
*background-position: 4px -100px; |
|
|
89 |
} |
|
|
90 |
|
|
|
91 |
#edit-btn input { |
|
|
92 |
background-position: 4px -78px; |
|
|
93 |
*background-position: 4px -76px; |
|
|
94 |
} |
|
|
95 |
|
|
|
96 |
#print-btn input { |
|
|
97 |
background-position: 4px -54px; |
|
|
98 |
*background-position: 4px -52px; |
|
|
99 |
} |
|
|
100 |
|
|
|
101 |
#open-btn input { |
|
|
102 |
background-position: 4px -30px; |
|
|
103 |
*background-position: 4px -28px; |
|
|
104 |
} |
|
|
105 |
|
|
|
106 |
#delete-btn input { |
|
|
107 |
background-position: 4px -126px; |
|
|
108 |
*background-position: 4px -124px; |
|
|
109 |
} |
|
|
110 |
|
|
|
111 |
#save-btn input { |
|
|
112 |
background-position: 4px -6px; |
|
|
113 |
*background-position: 4px -4px; |
|
|
114 |
} |
|
|
115 |
|
|
|
116 |
|
|
|
117 |
/* Augment the browser's default styling of the focus state by changing the |
|
|
118 |
background color of the button when it is focused. */ |
|
|
119 |
|
|
|
120 |
.yui3-toolbar-button input.focus { |
|
|
121 |
background-color: #B3D4FF; |
|
|
122 |
} |
|
|
123 |
|
|
|
124 |
#out { |
|
|
125 |
border: 1px solid #CCC; |
|
|
126 |
padding: 1em; |
|
|
127 |
margin-top: 10px; |
|
|
128 |
} |
|
|
129 |
</style> |
|
|
130 |
|
|
|
131 |
<div id="toolbar-1" class="yui3-toolbar"> |
|
|
132 |
<span id="add-btn" class="yui3-toolbar-button first-child"><span><span><input type="button" name="btn-add" value="Add"></span></span></span> |
|
|
133 |
<span id="edit-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-edit" value="Edit"></span></span></span> |
|
|
134 |
<span id="print-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-print" value="Print"></span></span></span> |
|
|
135 |
<span id="delete-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-delete" value="Delete"></span></span></span> |
|
|
136 |
<span id="open-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-open" value="Open"></span></span></span> |
|
|
137 |
<span id="save-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-save" value="Save"></span></span></span> |
|
|
138 |
</div> |
|
|
139 |
<div id="out">(Accessible Toolbar results here)</div> |
|
|
140 |
|
|
|
141 |
<script> |
|
|
142 |
|
|
|
143 |
YUI().use("node-focusmanager", function (Y) { |
|
|
144 |
|
|
|
145 |
// Retrieve the Node instance representing the toolbar |
|
|
146 |
// (<div id="toolbar">) and call the "plug" method |
|
|
147 |
// passing in a reference to the Focus Manager Node Plugin. |
|
|
148 |
|
|
|
149 |
var toolbar = Y.one("#toolbar-1"), |
|
|
150 |
out = Y.one("#out"); |
|
|
151 |
|
|
|
152 |
toolbar.plug(Y.Plugin.NodeFocusManager, { |
|
|
153 |
|
|
|
154 |
descendants: "input", |
|
|
155 |
keys: { next: "down:39", // Right arrow |
|
|
156 |
previous: "down:37" }, // Left arrow |
|
|
157 |
focusClass: "focus", |
|
|
158 |
circular: true |
|
|
159 |
|
|
|
160 |
}); |
|
|
161 |
|
|
|
162 |
|
|
|
163 |
// Set the ARIA "role" attribute of the Node instance representing the |
|
|
164 |
// toolbar to "toolbar" to improve the semantics of the markup for |
|
|
165 |
// users of screen readers. |
|
|
166 |
|
|
|
167 |
toolbar.set("role", "toolbar"); |
|
|
168 |
|
|
|
169 |
|
|
|
170 |
// Listen for the click event on each button via the use of the |
|
|
171 |
// "delegate" method |
|
|
172 |
|
|
|
173 |
toolbar.delegate("click", function (event) { |
|
|
174 |
|
|
|
175 |
out.setHTML("You clicked " + this.one("input").get("value")); |
|
|
176 |
|
|
|
177 |
}, ".yui3-toolbar-button"); |
|
|
178 |
|
|
|
179 |
}); |
|
|
180 |
|
|
|
181 |
</script> |
|
|
182 |
|
|
|
183 |
</div> |
|
|
184 |
|
|
|
185 |
<h2 id="setting-up-the-html">Setting Up the HTML</h2> |
|
|
186 |
|
|
|
187 |
<p> |
|
|
188 |
Start with a set of <code><input></code> elements. For the |
|
|
189 |
purpose of this example, the <code>type</code> attribute of each |
|
|
190 |
button will be set to a value of "button" since they won't be responsible for |
|
|
191 |
submitting a form. Each <code><input></code> is wrapped by two |
|
|
192 |
<code><span></code>s that serve as decorator elements used to style |
|
|
193 |
each button with rounded corners. |
|
|
194 |
</p> |
|
|
195 |
|
|
|
196 |
<pre class="code prettyprint"><div id="toolbar-1" class="yui3-toolbar"> |
|
|
197 |
<span id="add-btn" class="yui3-toolbar-button first-child"><span><span><input type="button" name="btn-add" value="Add"></span></span></span> |
|
|
198 |
<span id="edit-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-edit" value="Edit"></span></span></span> |
|
|
199 |
<span id="print-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-print" value="Print"></span></span></span> |
|
|
200 |
<span id="delete-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-delete" value="Delete"></span></span></span> |
|
|
201 |
<span id="open-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-open" value="Open"></span></span></span> |
|
|
202 |
<span id="save-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-save" value="Save"></span></span></span> |
|
|
203 |
</div></pre> |
|
|
204 |
|
|
|
205 |
|
|
|
206 |
<h2 id="setting-up-the-css">Setting Up the CSS</h2> |
|
|
207 |
|
|
|
208 |
<p> |
|
|
209 |
Next, each button in the toolbar is styled with rounded corners using a |
|
|
210 |
combination of the CSS <code>border</code> property along with the use of |
|
|
211 |
negative margins. An icon is added to each button using a background image. |
|
|
212 |
Following the advice of the |
|
|
213 |
<a href="http://developer.yahoo.com/performance/rules.html">Exceptional Performance team</a>, |
|
|
214 |
this example uses the technique of |
|
|
215 |
<a href="http://www.alistapart.com/articles/sprites">CSS Sprites</a>, |
|
|
216 |
combining all of the icons for each button into a single image to reduce |
|
|
217 |
HTTP requests. |
|
|
218 |
</p> |
|
|
219 |
|
|
|
220 |
<pre class="code prettyprint">.yui3-toolbar { |
|
|
221 |
border: solid 1px #999; |
|
|
222 |
background-color: #ccc; |
|
|
223 |
margin: .25em; |
|
|
224 |
overflow: auto; |
|
|
225 |
} |
|
|
226 |
|
|
|
227 |
.yui3-toolbar-button { |
|
|
228 |
display: inline-block; |
|
|
229 |
border-width: 1px 0; |
|
|
230 |
border-style: solid; |
|
|
231 |
border-color: #808080; |
|
|
232 |
background-color: #dfdfdf; |
|
|
233 |
margin: .25em; |
|
|
234 |
font-size: 85%; /* 11px */ |
|
|
235 |
} |
|
|
236 |
|
|
|
237 |
.first-child { |
|
|
238 |
margin-left: .5em; |
|
|
239 |
} |
|
|
240 |
|
|
|
241 |
.yui3-toolbar-button span { |
|
|
242 |
display: inline-block; |
|
|
243 |
border-width: 0 1px; |
|
|
244 |
border-style: solid; |
|
|
245 |
border-color: #808080; |
|
|
246 |
margin: 0 -1px; |
|
|
247 |
*position: relative; /* Necessary to get negative margins working in IE */ |
|
|
248 |
*left: -1px; |
|
|
249 |
} |
|
|
250 |
|
|
|
251 |
.yui3-toolbar-button span span { |
|
|
252 |
display: inline-block; |
|
|
253 |
border: solid 1px #b6b6b6; |
|
|
254 |
margin: 0; |
|
|
255 |
*position: static; |
|
|
256 |
} |
|
|
257 |
|
|
|
258 |
.yui3-toolbar-button input { |
|
|
259 |
border: none; |
|
|
260 |
margin: 0; |
|
|
261 |
padding: 4px 4px 4px 24px; |
|
|
262 |
*overflow: visible; /* Remove superfluous padding for IE */ |
|
|
263 |
background: transparent url(../assets/node-focusmanager/icons.png) no-repeat; |
|
|
264 |
} |
|
|
265 |
|
|
|
266 |
#add-btn input { |
|
|
267 |
background-position: 4px -102px; |
|
|
268 |
*background-position: 4px -100px; |
|
|
269 |
} |
|
|
270 |
|
|
|
271 |
#edit-btn input { |
|
|
272 |
background-position: 4px -78px; |
|
|
273 |
*background-position: 4px -76px; |
|
|
274 |
} |
|
|
275 |
|
|
|
276 |
#print-btn input { |
|
|
277 |
background-position: 4px -54px; |
|
|
278 |
*background-position: 4px -52px; |
|
|
279 |
} |
|
|
280 |
|
|
|
281 |
#open-btn input { |
|
|
282 |
background-position: 4px -30px; |
|
|
283 |
*background-position: 4px -28px; |
|
|
284 |
} |
|
|
285 |
|
|
|
286 |
#delete-btn input { |
|
|
287 |
background-position: 4px -126px; |
|
|
288 |
*background-position: 4px -124px; |
|
|
289 |
} |
|
|
290 |
|
|
|
291 |
#save-btn input { |
|
|
292 |
background-position: 4px -6px; |
|
|
293 |
*background-position: 4px -4px; |
|
|
294 |
}</pre> |
|
|
295 |
|
|
|
296 |
|
|
|
297 |
<h2 id="initializing-the-focus-manager">Initializing the Focus Manager</h2> |
|
|
298 |
|
|
|
299 |
<p> |
|
|
300 |
With the toolbar markup and CSS in place, retrieve the Node instance |
|
|
301 |
representing the toolbar (<code><div id="toolbar-1"></code>) |
|
|
302 |
and call the <a href="http://yuilibrary.com/yui/docs/api/classes/Node.html#method_plug"><code>plug</code></a> |
|
|
303 |
passing in a reference to the Focus Manager Node Plugin as the first argument, |
|
|
304 |
and a collection of configuration attributes as the second argument. |
|
|
305 |
</p> |
|
|
306 |
|
|
|
307 |
<p> |
|
|
308 |
The Focus Manager's |
|
|
309 |
<a href="http://yuilibrary.com/yui/docs/api/classes/plugin.NodeFocusManager.html#attr_descendants"><code>descendants</code></a> |
|
|
310 |
attribute is set to a value of "input", so that only one button in the toolbar |
|
|
311 |
is in the browser's default tab flow. This allows users navigating via the |
|
|
312 |
keyboard to use the tab key to quickly move into and out of the toolbar. Once |
|
|
313 |
the toolbar has focus, the user can move focus among each button using the left |
|
|
314 |
and right arrows keys, as defined by the value of the |
|
|
315 |
<a href="http://yuilibrary.com/yui/docs/api/classes/plugin.NodeFocusManager.html#attr_keys"><code>keys</code></a> |
|
|
316 |
attribute. Lastly, the |
|
|
317 |
<a href="http://yuilibrary.com/yui/docs/api/classes/plugin.NodeFocusManager.html#attr_focusClass"><code>focusClass</code></a> |
|
|
318 |
attribute is used to apply a class of <code>focus</code> to each |
|
|
319 |
<code><input></code> when it is focused, making it easy to style the |
|
|
320 |
focused state in all browsers. |
|
|
321 |
</p> |
|
|
322 |
|
|
|
323 |
<pre class="code prettyprint">YUI().use("node-focusmanager", function (Y) { |
|
|
324 |
|
|
|
325 |
// Retrieve the Node instance representing the toolbar |
|
|
326 |
// (<div id="toolbar">) and call the "plug" method |
|
|
327 |
// passing in a reference to the Focus Manager Node Plugin. |
|
|
328 |
|
|
|
329 |
var toolbar = Y.one("#toolbar-1"); |
|
|
330 |
|
|
|
331 |
toolbar.plug(Y.Plugin.NodeFocusManager, { |
|
|
332 |
|
|
|
333 |
descendants: "input", |
|
|
334 |
keys: { next: "down:39", // Right arrow |
|
|
335 |
previous: "down:37" }, // Left arrow |
|
|
336 |
focusClass: "focus", |
|
|
337 |
circular: true |
|
|
338 |
|
|
|
339 |
}); |
|
|
340 |
|
|
|
341 |
|
|
|
342 |
// Set the ARIA "role" attribute of the Node instance representing the |
|
|
343 |
// toolbar to "toolbar" to improve the semantics of the markup for |
|
|
344 |
// users of screen readers. |
|
|
345 |
|
|
|
346 |
toolbar.set("role", "toolbar"); |
|
|
347 |
|
|
|
348 |
|
|
|
349 |
// Listen for the click event on each button via the use of the |
|
|
350 |
// "delegate" method |
|
|
351 |
|
|
|
352 |
toolbar.delegate("click", function (event) { |
|
|
353 |
|
|
|
354 |
alert("You clicked " + this.one("input").get("value")); |
|
|
355 |
|
|
|
356 |
}, ".yui3-toolbar-button"); |
|
|
357 |
|
|
|
358 |
});</pre> |
|
|
359 |
|
|
|
360 |
|
|
|
361 |
<h2 id="styling-focus">Styling Focus</h2> |
|
|
362 |
|
|
|
363 |
<p> |
|
|
364 |
To augment the browser's default styling of the focused state define a CSS |
|
|
365 |
selector that adds a background color to the |
|
|
366 |
</p> |
|
|
367 |
|
|
|
368 |
<pre class="code prettyprint">/* Augment the browser's default styling of the focus state by changing the |
|
|
369 |
background color of the button when it is focused. */ |
|
|
370 |
|
|
|
371 |
.yui3-toolbar-button input.focus { |
|
|
372 |
background-color: #B3D4FF; |
|
|
373 |
}</pre> |
|
|
374 |
|
|
|
375 |
|
|
|
376 |
<h2 id="complete-example-source">Complete Example Source</h2> |
|
|
377 |
|
|
|
378 |
<pre class="code prettyprint"><div id="toolbar-1" class="yui3-toolbar"> |
|
|
379 |
<span id="add-btn" class="yui3-toolbar-button first-child"><span><span><input type="button" name="btn-add" value="Add"></span></span></span> |
|
|
380 |
<span id="edit-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-edit" value="Edit"></span></span></span> |
|
|
381 |
<span id="print-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-print" value="Print"></span></span></span> |
|
|
382 |
<span id="delete-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-delete" value="Delete"></span></span></span> |
|
|
383 |
<span id="open-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-open" value="Open"></span></span></span> |
|
|
384 |
<span id="save-btn" class="yui3-toolbar-button"><span><span><input type="button" name="btn-save" value="Save"></span></span></span> |
|
|
385 |
</div> |
|
|
386 |
<div id="out">(Accessible Toolbar results here)</div> |
|
|
387 |
|
|
|
388 |
<script> |
|
|
389 |
|
|
|
390 |
YUI().use("node-focusmanager", function (Y) { |
|
|
391 |
|
|
|
392 |
// Retrieve the Node instance representing the toolbar |
|
|
393 |
// (<div id="toolbar">) and call the "plug" method |
|
|
394 |
// passing in a reference to the Focus Manager Node Plugin. |
|
|
395 |
|
|
|
396 |
var toolbar = Y.one("#toolbar-1"), |
|
|
397 |
out = Y.one("#out"); |
|
|
398 |
|
|
|
399 |
toolbar.plug(Y.Plugin.NodeFocusManager, { |
|
|
400 |
|
|
|
401 |
descendants: "input", |
|
|
402 |
keys: { next: "down:39", // Right arrow |
|
|
403 |
previous: "down:37" }, // Left arrow |
|
|
404 |
focusClass: "focus", |
|
|
405 |
circular: true |
|
|
406 |
|
|
|
407 |
}); |
|
|
408 |
|
|
|
409 |
|
|
|
410 |
// Set the ARIA "role" attribute of the Node instance representing the |
|
|
411 |
// toolbar to "toolbar" to improve the semantics of the markup for |
|
|
412 |
// users of screen readers. |
|
|
413 |
|
|
|
414 |
toolbar.set("role", "toolbar"); |
|
|
415 |
|
|
|
416 |
|
|
|
417 |
// Listen for the click event on each button via the use of the |
|
|
418 |
// "delegate" method |
|
|
419 |
|
|
|
420 |
toolbar.delegate("click", function (event) { |
|
|
421 |
|
|
|
422 |
out.setHTML("You clicked " + this.one("input").get("value")); |
|
|
423 |
|
|
|
424 |
}, ".yui3-toolbar-button"); |
|
|
425 |
|
|
|
426 |
}); |
|
|
427 |
|
|
|
428 |
</script></pre> |
|
|
429 |
|
|
|
430 |
</div> |
|
|
431 |
</div> |
|
|
432 |
</div> |
|
|
433 |
|
|
|
434 |
<div class="yui3-u-1-4"> |
|
|
435 |
<div class="sidebar"> |
|
|
436 |
|
|
|
437 |
<div id="toc" class="sidebox"> |
|
|
438 |
<div class="hd"> |
|
|
439 |
<h2 class="no-toc">Table of Contents</h2> |
|
|
440 |
</div> |
|
|
441 |
|
|
|
442 |
<div class="bd"> |
|
|
443 |
<ul class="toc"> |
|
|
444 |
<li> |
|
|
445 |
<a href="#setting-up-the-html">Setting Up the HTML</a> |
|
|
446 |
</li> |
|
|
447 |
<li> |
|
|
448 |
<a href="#setting-up-the-css">Setting Up the CSS</a> |
|
|
449 |
</li> |
|
|
450 |
<li> |
|
|
451 |
<a href="#initializing-the-focus-manager">Initializing the Focus Manager</a> |
|
|
452 |
</li> |
|
|
453 |
<li> |
|
|
454 |
<a href="#styling-focus">Styling Focus</a> |
|
|
455 |
</li> |
|
|
456 |
<li> |
|
|
457 |
<a href="#complete-example-source">Complete Example Source</a> |
|
|
458 |
</li> |
|
|
459 |
</ul> |
|
|
460 |
</div> |
|
|
461 |
</div> |
|
|
462 |
|
|
|
463 |
|
|
|
464 |
|
|
|
465 |
<div class="sidebox"> |
|
|
466 |
<div class="hd"> |
|
|
467 |
<h2 class="no-toc">Examples</h2> |
|
|
468 |
</div> |
|
|
469 |
|
|
|
470 |
<div class="bd"> |
|
|
471 |
<ul class="examples"> |
|
|
472 |
|
|
|
473 |
|
|
|
474 |
<li data-description="Creating an accessible toolbar using the Focus Manager Node Plugin and Node's support for the WAI-ARIA Roles and States."> |
|
|
475 |
<a href="node-focusmanager-toolbar.html">Accessible Toolbar</a> |
|
|
476 |
</li> |
|
|
477 |
|
|
|
478 |
|
|
|
479 |
|
|
|
480 |
<li data-description="Creating an accessible menu button using the Focus Manager Node Plugin, Event's delegation support and mouseenter event, along with the Overlay widget and Node's support for the WAI-ARIA Roles and States."> |
|
|
481 |
<a href="node-focusmanager-button.html">Accessible Menu Button</a> |
|
|
482 |
</li> |
|
|
483 |
|
|
|
484 |
|
|
|
485 |
</ul> |
|
|
486 |
</div> |
|
|
487 |
</div> |
|
|
488 |
|
|
|
489 |
|
|
|
490 |
|
|
|
491 |
</div> |
|
|
492 |
</div> |
|
|
493 |
</div> |
|
|
494 |
</div> |
|
|
495 |
|
|
|
496 |
<script src="../assets/vendor/prettify/prettify-min.js"></script> |
|
|
497 |
<script>prettyPrint();</script> |
|
|
498 |
|
|
|
499 |
<script> |
|
|
500 |
YUI.Env.Tests = { |
|
|
501 |
examples: [], |
|
|
502 |
project: '../assets', |
|
|
503 |
assets: '../assets/node-focusmanager', |
|
|
504 |
name: 'node-focusmanager-toolbar', |
|
|
505 |
title: 'Accessible Toolbar', |
|
|
506 |
newWindow: '', |
|
|
507 |
auto: false |
|
|
508 |
}; |
|
|
509 |
YUI.Env.Tests.examples.push('node-focusmanager-toolbar'); |
|
|
510 |
YUI.Env.Tests.examples.push('node-focusmanager-button'); |
|
|
511 |
|
|
|
512 |
</script> |
|
|
513 |
<script src="../assets/yui/test-runner.js"></script> |
|
|
514 |
|
|
|
515 |
|
|
|
516 |
|
|
|
517 |
</body> |
|
|
518 |
</html> |