Skip to content

Commit

Permalink
Editor Menubar Example: Add notes about hover and focus movement (pull
Browse files Browse the repository at this point in the history
…#711)

For issue #603, modified: examples/menubar/menubar-2/menubar-2.html.
In the accessibility features section, added items 4 and 5 describing the conditions when mouse hover can move focus.
  • Loading branch information
mcking65 committed Jun 27, 2018
1 parent efcd04e commit eafc098
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion examples/menubar/menubar-2/menubar-2.html
Expand Up @@ -137,8 +137,21 @@ <h2 id="ex1_label">Example</h2>
<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>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>

Expand Down

0 comments on commit eafc098

Please sign in to comment.