/
menubar-2.html
775 lines (758 loc) · 28.3 KB
/
menubar-2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Editor Menubar Example | WAI-ARIA Authoring Practices 1.1</title>
<!-- Core js and css shared by all examples; do not modify when using this template. -->
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/base.css">
<link rel="stylesheet" href="../../css/core.css">
<script src="../../js/examples.js"></script>
<script src="../../js/highlight.pack.js"></script>
<script src="../../js/app.js"></script>
<!-- CSS and javascript for this example. -->
<link href="css/menubarAction.css" rel="stylesheet">
<script src="js/styleManager.js" type="text/javascript"></script>
<script src="js/MenubarAction.js" type="text/javascript"></script>
<script src="js/MenubarItemAction.js" type="text/javascript"></script>
<script src="js/PopupMenuAction.js" type="text/javascript"></script>
<script src="js/PopupMenuItemAction.js" type="text/javascript"></script>
<script src="js/menubar-2-init.js" type="text/javascript"></script>
</head>
<body>
<nav aria-label="Related Links" class="feedback">
<ul>
<li><a href="../../../#browser_and_AT_support">Browser and Assistive Technology Support</a></li>
<li><a href="https://github.com/w3c/aria-practices/issues/new">Report Issue</a></li>
<li><a href="https://github.com/w3c/aria-practices/projects/5">Related Issues</a></li>
<li><a href="../../../#menu">Design Pattern</a></li>
</ul>
</nav>
<main>
<h1>Editor Menubar Example</h1>
<p>
<strong>NOTE:</strong> Please provide feedback on this example in
<a href="https://github.com/w3c/aria-practices/issues/409">issue 409.</a>
</p>
<p>
The following example demonstrates using the
<a href="../../../#menu">menubar design pattern</a>
to provide access to sets of actions.
Each item in the below menubar identifies a category of text formatting actions that can be executed from its submenu.
The submenus also demonstrate <code>menuitemradio</code> and <code>menuitemcheckbox</code> elements.
</p>
<p>Similar examples include: </p>
<ul>
<li><a href="../menubar-1/menubar-1.html">Navigation Menubar Example</a>: A menubar that presents site navigation menus.</li>
</ul>
<section id="code-ex-1">
<h2 id="ex1_label">Example</h2>
<div role="separator" id="ex1_start_sep" aria-labelledby="ex1_start_sep ex1_label" aria-label="Start of"></div>
<div id="ex1">
<ul id="menubar1" role="menubar" aria-label="Text Formatting">
<li role="none">
<a role="menuitem" aria-haspopup="true" aria-expanded="false" href="#">Font</a>
<ul role="menu" rel="font-family" aria-label="Font" >
<li role="menuitemradio" aria-checked="true">Sans-serif</li>
<li role="menuitemradio" aria-checked="false">Serif</li>
<li role="menuitemradio" aria-checked="false">Monospace</li>
<li role="menuitemradio" aria-checked="false">Fantasy</li>
</ul>
</li>
<li role="none">
<a role="menuitem" aria-haspopup="true" aria-expanded="false" href="#">Style/Color</a>
<ul role="menu" aria-label="Style/Color">
<li role="menuitemcheckbox" rel="font-bold" aria-checked="false">Bold</li>
<li role="menuitemcheckbox" rel="font-italic" aria-checked="false">Italic</li>
<li role="separator"></li>
<li>
<ul role="group" rel="font-color" aria-label="Text Color">
<li role="menuitemradio" aria-checked="true">Black</li>
<li role="menuitemradio" aria-checked="false">Blue</li>
<li role="menuitemradio" aria-checked="false">Red</li>
<li role="menuitemradio" aria-checked="false">Green</li>
</ul>
<li role="separator"></li>
<li>
<ul role="group" rel="text-decoration" aria-label="Text Decoration">
<li role="menuitemradio" aria-checked="true">None</li>
<li role="menuitemradio" aria-checked="false">Overline</li>
<li role="menuitemradio" aria-checked="false">Line-through</li>
<li role="menuitemradio" aria-checked="false">Underline</li>
</ul>
</ul>
</li>
<li role="none">
<a role="menuitem" aria-haspopup="true" aria-expanded="false" href="#">Text Align</a>
<ul role="menu" rel="text-align" aria-label="Text Align">
<li role="menuitemradio" aria-checked="true">Left</li>
<li role="menuitemradio" aria-checked="false">Center</li>
<li role="menuitemradio" aria-checked="false">Right</li>
<li role="menuitemradio" aria-checked="false">Justify</li>
</ul>
</li>
<li role="none">
<a role="menuitem" aria-haspopup="true" aria-expanded="false" href="#">Size</a>
<ul role="menu" aria-label="Size" >
<li role="menuitem" rel="font-smaller" aria-disabled="false">Smaller</li>
<li role="menuitem" rel="font-larger" aria-disabled="false">Larger</li>
<li role="separator"></li>
<li>
<ul role="group" rel="font-size" aria-label="Font Sizes">
<li role="menuitemradio" aria-checked="false">X-Small</li>
<li role="menuitemradio" aria-checked="false">Small</li>
<li role="menuitemradio" aria-checked="true">Medium</li>
<li role="menuitemradio" aria-checked="false">Large</li>
<li role="menuitemradio" aria-checked="false">X-Large</li>
</ul>
</ul>
</li>
</ul>
<label for="textarea1" class="hidden">Text Sample</label><br>
<textarea id="textarea1" rows="20" cols="80"
style="font-size: medium; font-family: sans-serif"
>
Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.
Now we are engaged in a great civil war, testing whether that nation, or any nation, so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.
But, in a larger sense, we can not dedicate, we can not consecrate, we can not hallow, this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us, that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion, that we here highly resolve that these dead shall not have died in vain, that this nation, under God, shall have a new birth of freedom, and that government of the people, by the people, for the people, shall not perish from the earth.
</textarea>
<p>
<a href="https://en.wikipedia.org/wiki/Gettysburg,_Pennsylvania">More information on
Gettysburg Address</a>
</p>
</div>
<div role="separator" id="ex1_end_sep" aria-labelledby="ex1_end_sep ex1_label" aria-label="End of" ></div>
</section>
<section>
<h2>Accessibility Features</h2>
<ol>
<li>Users of assistive technologies can identify which format settings are selected because they are represented by menu item radio and menu item checkbox elements that have a checked state.</li>
<li>Disabled menu items are demonstrated in the font size menu, which includes two disabled menuitems.</li>
<li>The down arrow and checked icons are made compatible with high contrast mode and hidden from screen readers by using the CSS <code>content</code> property to render images.</li>
<li>
Like desktop menubars, submenus open on mouse hover over a parent item in the menubar only if another submenu is already open.
That is, if all submenus are closed, a click on a parent menu item is required to display a submenu.
Minimizing automatic popups makes exploring with a screen magnifier easier.
</li>
<li>
In general, moving focus in response to mouse hover is avoided in accessible widgets; it causes unexpected context changes for keyboard users.
However, like desktop menubars, there are two conditions in this example menubar where focus moves in response to hover in order to help maintain context for users who use both keyboard and mouse:
<ol>
<li>After a parent menu item in the menubar has been activated and the user hovers over a different parent item in the menubar, focus will follow hover.</li>
<li>When a submenu is open and the user hovers over an item in the submenu, focus follows hover.</li>
</ol>
</li>
</ol>
</section>
<section>
<h2 id="kbd_label">Keyboard Support</h2>
<h3 id="kbd1_label">Menubar</h3>
<table aria-labelledby="kbd1_label kbd_label" class="def">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr data-test-id="menubar-key-space-and-enter">
<th>
<kbd>Space</kbd><br><kbd>Enter</kbd>
</th>
<td>Opens submenu and moves focus to first item in the submenu.</td>
</tr>
<tr data-test-id="menubar-key-escape">
<th>
<kbd>Escape</kbd>
</th>
<td>
If a submenu is open, closes it. Otherwise, does nothing.
</td>
</tr>
<tr data-test-id="menubar-key-right-arrow">
<th>
<kbd>Right Arrow</kbd>
</th>
<td>
<ul>
<li>Moves focus to the next item in the menubar.</li>
<li>If focus is on the last item, moves focus to the first item.</li>
</ul>
</td>
</tr>
<tr data-test-id="menubar-key-left-arrow">
<th>
<kbd>Left Arrow</kbd>
</th>
<td>
<ul>
<li>Moves focus to the previous item in the menubar.</li>
<li>If focus is on the first item, moves focus to the last item.</li>
</ul>
</td>
</tr>
<tr data-test-id="menubar-key-down-arrow">
<th>
<kbd>Down Arrow</kbd>
</th>
<td>Opens submenu and moves focus to first item in the submenu.</td>
</tr>
<tr data-test-id="menubar-key-up-arrow">
<th>
<kbd>Up Arrow</kbd>
</th>
<td>Opens submenu and moves focus to last item in the submenu.</td>
</tr>
<tr data-test-id="menubar-key-home">
<th>
<kbd>Home</kbd>
</th>
<td>Moves focus to first item in the menubar.</td>
</tr>
<tr data-test-id="menubar-key-end">
<th>
<kbd>End</kbd>
</th>
<td>Moves focus to last item in the menubar.</td>
</tr>
<tr data-test-id="menubar-key-character">
<th>
<kbd>Character</kbd>
</th>
<td>
<ul>
<li>Moves focus to next item in the menubar having a name that starts with the typed character.</li>
<li>If none of the items have a name starting with the typed character, focus does not move.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<h3 id="kbd2_label">Submenu</h3>
<table aria-labelledby="kbd2_label kbd_label" class="def">
<thead>
<tr>
<th>Key</th>
<th>Function</th>
</tr>
</thead>
<tbody>
<tr data-test-id="submenu-enter">
<th>
<kbd>Space</kbd><br><kbd>Enter</kbd>
</th>
<td>Activates menu item, causing action to be executed, e.g., bold text, change font. </td>
</tr>
<tr data-test-id="submenu-escape">
<th>
<kbd>Escape</kbd>
</th>
<td>
<ul>
<li>Closes submenu.</li>
<li>Moves focus to parent menubar item.</li>
</ul>
</td>
</tr>
<tr data-test-id="submenu-right-arrow">
<th>
<kbd>Right Arrow</kbd>
</th>
<td>
<ul>
<li>Closes submenu.</li>
<li>Moves focus to next item in the menubar.</li>
<li>Opens submenu of newly focused menubar item, keeping focus on that parent menubar item.</li>
</ul>
</td>
</tr>
<tr data-test-id="submenu-left-arrow">
<th>
<kbd>Left Arrow</kbd>
</th>
<td>
<ul>
<li>Closes submenu.</li>
<li>Moves focus to previous item in the menubar.</li>
<li>Opens submenu of newly focused menubar item, keeping focus on that parent menubar item.</li>
</ul>
</td>
</tr>
<tr data-test-id="submenu-down-arrow">
<th>
<kbd>Down Arrow</kbd>
</th>
<td>
<ul>
<li>Moves focus to the next item in the submenu.</li>
<li>If focus is on the last item, moves focus to the first item.</li>
</ul>
</td>
</tr>
<tr data-test-id="submenu-up-arrow">
<th>
<kbd>Up Arrow</kbd>
</th>
<td>
<ul>
<li>Moves focus to previous item in the submenu.</li>
<li>If focus is on the first item, moves focus to the last item.</li>
</ul>
</td>
</tr>
<tr data-test-id="submenu-home">
<th>
<kbd>Home</kbd>
</th>
<td>Moves focus to the first item in the submenu.</td>
</tr>
<tr data-test-id="submenu-end">
<th>
<kbd>End</kbd>
</th>
<td>Moves focus to the last item in the submenu.</td>
</tr>
<tr data-test-id="submenu-character">
<th>
<kbd>Character</kbd>
</th>
<td>
<ul>
<li>Moves focus to the next item having a name that starts with the typed character.</li>
<li>If none of the items have a name starting with the typed character, focus does not move.</li>
</ul>
</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
<h3 id="rps1_label">Menubar</h3>
<table aria-labelledby="rps1_label rps_label" class="data attributes">
<thead>
<tr>
<th scope="col">Role</th>
<th scope="col">Attribute</th>
<th scope="col">Element</th>
<th scope="col">Usage</th>
</tr>
</thead>
<tbody>
<tr data-test-id="menubar-role">
<th scope="row">
<code>menubar</code>
</th>
<td></td>
<td>
<code>ul</code>
</td>
<td>
<ul>
<li>Identifies the element as a <code>menubar</code> container for a set of <code>menuitem</code> elements.</li>
<li>Is not focusable because focus is managed using <a href="../../../#kbd_roving_tabindex">roving tabindex.</a></li>
</ul>
</td>
</tr>
<tr data-test-id="menubar-aria-label">
<td></td>
<th scope="row">
<code>aria-label="<em>string</em>"
</code>
</th>
<td>
<code>ul</code>
</td>
<td>
<ul>
<li>
Defines an acessible name for the <code>menubar</code>.
</li>
<li>Helps assistive technology users understand the purpose of the menubar and
distinguish it from any other menubars or similar elements on the page.</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitem-role">
<th scope="row">
<code>menuitem</code>
</th>
<td></td>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>Identifies the element as a menu item within the menubar.</li>
<li>Accessible name comes from the text content.</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitem-tabindex">
<td></td>
<th scope="row">
<code>tabindex="-1"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Makes the <code>menuitem</code> element keyboard focusable but
<strong>not</strong> part of the <kbd>Tab</kbd> sequence of the page.
</td>
</tr>
<tr data-test-id="menuitem-tabindex">
<td></td>
<th scope="row">
<code>tabindex="0"</code>
</th>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Makes the <code>menuitem</code> element keyboard focusable and
part of the <kbd>tab</kbd> sequence of the page.
</li>
<li>
Only one <code>menuitem</code> in the <code>menubar</code> has <code>tabindex="0"</code>.
</li>
<li>
When the page loads, the first item in the menubar has <code>tabindex="0"</code>.
</li>
<li>
Focus is managed using <a href="../../../#kbd_roving_tabindex">roving tabindex</a>.
</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitem-aria-haspopup">
<td></td>
<th scope="row">
<code>aria-haspopup="true"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Indicates that the <code>menuitem</code> has a submenu.
</td>
</tr>
<tr data-test-id="menuitem-aria-expanded">
<td></td>
<th scope="row">
<code>aria-expanded="true"</code>
</th>
<td>
<code>li</code>
</td>
<td>Indicates the menu is open.</td>
</tr>
<tr data-test-id="menuitem-aria-expanded">
<td></td>
<th scope="row">
<code>aria-expanded="false"</code>
</th>
<td>
<code>li</code>
</td>
<td>Indicates the submenu is closed.</td>
</tr>
</tbody>
</table>
<h3 id="rps2_label">Submenu</h3>
<table aria-labelledby="rps2_label rps_label" class="data attributes">
<thead>
<tr>
<th scope="col">Role</th>
<th scope="col">Attribute</th>
<th scope="col">Element</th>
<th scope="col">Usage</th>
</tr>
</thead>
<tbody>
<tr data-test-id="menu-role">
<th scope="row">
<code>menu</code>
</th>
<td></td>
<td>
<code>ul</code>
</td>
<td>
<ul>
<li>
Identifies the element as a menu container for a set of <code>menuitem</code> elements.
</li>
<li>
Is not focusable because focus is managed using <a href="../../../#kbd_roving_tabindex">roving tabindex.</a>
</li>
</ul>
</td>
</tr>
<tr data-test-id="menu-aria-label">
<td></td>
<th scope="row">
<code>aria-label="<em>string</em>"</code>
</th>
<td>
<code>ul</code>
</td>
<td>
Defines an acessible name for the <code>menu</code>.
</td>
</tr>
<tr data-test-id="menuitem-role">
<th scope="row">
<code>menuitem</code>
</th>
<td></td>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>Identifies the element as an item in the submenu.</li>
<li>Accessible name comes from the text content.</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitem-tabindex">
<td></td>
<th scope="row">
<code>tabindex="-1"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Makes the item focusable but <strong>not</strong> part of the page <kbd>tab</kbd> sequence.
</td>
</tr>
<tr data-test-id="menuitem-aria-disabled">
<td></td>
<th scope="row">
<code>aria-disabled="false"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Used on the font size "Smaller" and "Larger" options to indicate they are active.
</td>
</tr>
<tr data-test-id="menuitem-aria-disabled">
<td></td>
<th scope="row">
<code>aria-disabled="true"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Used on the font size "Smaller" and "Larger" options to indicate one of the options is <strong>not</strong> active because the largest or smallest font has been selected.
</td>
</tr>
<tr data-test-id="menuitemcheckbox-role">
<th scope="row">
<code>menuitemcheckbox</code>
</th>
<td></td>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>Identifies the element as a <code>menuitemcheckbox</code>.</li>
<li>Accessible name comes from the text content.</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitemcheckbox-tabindex">
<td></td>
<th scope="row">
<code>tabindex="-1"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Makes the menuitemcheckbox focusable but <strong>not</strong> part of the page <kbd>tab</kbd> sequence.
</td>
</tr>
<tr data-test-id="menuitemcheckbox-aria-checked">
<td></td>
<th scope="row">
<code>aria-checked="true"</code>
</th>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Indicates that the <code>menuitemcheckbox</code> is checked.
</li>
<li>
The visual appearance of the selected state is synchronized with the <code>aria-checked</code> value using CSS attribute selectors.
</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitemcheckbox-aria-checked">
<td></td>
<th scope="row">
<code>aria-checked="false"</code>
</th>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Indicates that the <code>menuitemcheckbox</code> is <strong>NOT</strong> checked.
</li>
<li>
The visual appearance of the selected state is synchronized with the <code>aria-checked</code> value using CSS attribute selectors.
</li>
</ul>
</td>
</tr>
<tr data-test-id="group-role">
<th scope="row">
<code>group</code>
</th>
<td></td>
<td>
<code>ul</code>
</td>
<td>
<ul>
<li>
Identifies the element as a container for a set of <code>menuitemradio</code> elements.
</li>
<li>
Enables browsers to compute values of <code>aria-setsize</code> and <code>aria-posinset</code>.
</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitemradio-role">
<th scope="row">
<code>menuitemradio</code>
</th>
<td></td>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Identifies the element as a <code>menuitemradio</code> element.
</li>
<li>
When all items in a submenu are members of the same radio group,
the group is defined by the <code>menu</code> element; a <code>group</code> element is not necessary.
</li>
<li>
Accessible name comes from the text content.
</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitemradio-tabindex">
<td></td>
<th scope="row">
<code>tabindex="-1"</code>
</th>
<td>
<code>li</code>
</td>
<td>
Makes the menuitemradio focusable but <strong>not</strong> part of the page <kbd>tab</kbd> sequence.
</td>
</tr>
<tr data-test-id="menuitemradio-aria-checked">
<td></td>
<th scope="row">
<code>aria-checked="true"</code>
</th>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Indicates the <code>menuitemradio</code> is checked.
</li>
<li>
The visual appearance of the selected state is synchronized with the <code>aria-checked</code> value using CSS attribute selectors.
</li>
</ul>
</td>
</tr>
<tr data-test-id="menuitemradio-aria-checked">
<td></td>
<th scope="row">
<code>aria-checked="false"</code>
</th>
<td>
<code>li</code>
</td>
<td>
<ul>
<li>
Indicates that the <code>menuitemradio</code> is <strong>NOT</strong> checked.
</li>
<li>
The visual appearance of the selected state is synchronized with the <code>aria-checked</code> value using CSS attribute selectors.
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<li>
CSS:
<a href="css/menubarAction.css" type="tex/css">menubarAction.css</a>
</li>
<li>
Javascript: <a href="js/MenubarAction.js" type="text/javascript">MenubarAction.js</a>
</li>
<li>
Javascript: <a href="js/MenubarItemAction.js" type="text/javascript">MenubarItemAction.js</a>
</li>
<li>
Javascript: <a href="js/PopupMenuAction.js" type="text/javascript">PopupMenuAction.js</a>
</li>
<li>
Javascript: <a href="js/PopupMenuItemAction.js" type="text/javascript">PopupMenuItemAction.js</a>
</li>
<li>
Javascript: <a href="js/styleManager.js" type="text/javascript">styleManager.js</a>
</li>
</ul>
</section>
<section>
<h2 id="sc1_label">HTML Source Code</h2>
<div id="sc1_start_sep" role="separator" aria-labelledby="sc1_start_sep sc1_label" aria-label="Start of" ></div>
<pre><code id="sc1"></code></pre>
<div id="sc1_end_sep" role="separator" aria-labelledby="sc1_end_sep sc1_label" aria-label="End of" ></div>
<script>
sourceCode.add('sc1', 'ex1');
</script>
<!-- After all source has been added, run make to do the insert. -->
<script>
sourceCode.make();
</script>
</section>
</main>
<nav>
<a href="../../../#menu">Menu or Menubar Design Pattern in WAI-ARIA Authoring Practices 1.1</a>
</nav>
</body>
</html>