ARIA Design Patterns: Menu Button & Menu

Example 1. Menu button with menu containing action items

This example illustrates the use of a menu button that controls a popup menu of actions for changing the state in a web application.

In particular, selecting an item from the menu controlled by the 'Actions' button updates the 'Last Action' textbox.

Interactive Demo

Link that precedes button

Menu Button: Keyboard Interactions

From ARIA Authoring Practices 1.1: Menu Button

With focus on the button:

Menu: Keyboard Interactions

From ARIA Authoring Practices 1.1: Menu

When a menu opens and its items are arranged vertically:

Note: For Left Arrow and Right Arrow, the APG gives the option to "do nothing" when the menu does not contain any submenus. Since that is the case in this example, that option was chosen.

For Developers

The following resources provide descriptions of the ARIA, HTML and JavaScript implementation details for this example.