6. Interactive WAI-ARIA (Advanced)
Accessible Menu Bar
Based on the Menu bar details on the previous page, apply what you have learned to the associated book files to make the menu there accessible.
Files for this activity include:
Use the surroundings of the highlighted code on the previous page as a guide to find where the fixes should be applied. Repair the accessibility of the menu bar by applying the highlighted code to the /assets/ik_menu.js file.
Note: While we suggest using the highlighted code we’ve provided, you are free to come up with your own solutions provided they produce the expected results listed in the marking rubric below.
Test your updated menu bar with ChromeVox to ensure each element described in the marking rubric below is functioning as suggested.
When you have applied your changes and tested to be sure your menu bar functions as described, submit the URL to your menu.html file on your GitHub Pages site, to the file on the web server you are using to host your copy of the book files, or a GitHack URL.
Instructions are announced on how to use the menu bar with a keyboard, when the menu bar first receives focus.
|Menu Bar Semantics:
List item semantics are replaced with menu semantics.
When a menu item with a submenu receives focus, the presence of a submenu is announced.
Only elements of the menu bar that are in view are able to receive focus.
As described in Adding Keyboard Operability for a menu bar, the menu bar functions using a keyboard (and mouse).