Synonyms: Menu bar
See also: Context menu , menu button , toolbar , tree structure , tab group
Menus are used for selecting functions or for navigation (see DIN EN ISO 9241-161: 8.26).
A menu has several menu items which are usually arranged horizontally and adjacent to each other. A menu item can have a sub-menu. The menu items of a sub-menu are arranged vertically. Sub-menus can be nested several times, i.e. a menu item in a sub-menu can also have a sub-menu. It is only possible to display one sub-menu per hierarchy level. A menu can contain menu items that can be selected like check boxes or radio buttons. The menu items can be grouped. The label of the groups cannot be selected.
Presentation
Permalink "Presentation"No. | Property | Description | Classification | Reference |
---|---|---|---|---|
529 | Contrast | If the menu item has a text label, this must have a contrast ratio of at least 4.5:1 with respect to the background. | Must | EN 301 549: 9.1.4.3, 11.1.4.3 |
530 | Contrast | If the menu item has a graphic label, this must have a contrast ratio of at least 3:1 with respect to the background. | Must | EN 301 549: 9.1.4.11, 11.1.4.11 |
531 | Contrast | The arrow icon which refers to a sub-menu must have a contrast ratio of at least 3:1 with respect to the neighboring color. | Must | EN 301 549: 9.1.4.11, 11.1.4.11 |
532 | Contrast | If the selected menu item only differs from the unselected menu item due to its color (e.g. foreground or background color), the colors must have a contrast ratio of at least 3:1. Note: The selected menu item does not have to be color coded or marked with color only. It can be marked with a check box or a radio button, for example. In this case, the contrast requirements for the color coding are eliminated as long as the check box or the radio button has sufficient contrasts. | Must | EN 301 549: 9.1.4.11, 11.1.4.11 |
533 | Label | If the menu item has a graphic label, it should have a tooltip with a text label. | Should | WCAG 2.1: 3.3.5 (AAA);DIN EN ISO 9241-143: 9.6.11 |
534 | Web: Consistency | If the menu is used for navigation, the menu items on each screen should be displayed in the same relative order and receive the keyboard focus (see |
Operation
Permalink "Operation"No. | Property | Description | Classification | Reference |
---|---|---|---|---|
538 | Use of the keyboard | It must be possible to access, operate and exit the menu with the keyboard (see |
Use of the keyboard: menu
Permalink "Use of the keyboard: menu"Action | Key | Classification |
---|---|---|
Focusing of the menu | Desktop:
| Required |
Exiting the menu | Desktop:
| Required |
Opening a sub-menu of the menu |
| Required |
Opening a sub-menu of a sub-menu |
| Required |
Closing a sub-menu of the menu | ESC | Required |
Closing a sub-menu of a sub-menu |
| Required |
Navigating through the menu | RIGHT/LEFT ARROW Note: This must also work if the focus is in a sub-menu, and the use of the arrow key is not required in order to open or close a sub-menu due to the current focus position. In this case, the open sub-menu is closed automatically, and the next sub-menu is opened and the focus is placed on the first sub-menu item. | Required |
Navigating through a sub-menu | UP/DOWN ARROW | Required |
Navigating through the menu or sub-menu | [Shortcut key] | Recommended |
Navigating through the menu (to a menu item before or afterwards with a defined increment) | PAGE UP, PAGE DOWN Note: The increment should match the amount of visible menu items. | Recommended |
Selection of a menu item | ENTER, [shortcut key] | Required |
Use of the pointing device: menu
Permalink "Use of the pointing device: menu"Action | Key | Classification |
---|---|---|
Opening a sub-menu of the menu if no sub-menu is yet displayed | Left click on the parent menu item | Required |
Opening a sub-menu of the menu if a sub-menu is already displayed | Hovering over the parent menu item | Required |
Closing a sub-menu of the menu | Left click on the parent menu item, left click on a menu item in the sub-menu (which does not contain another submenu), click outside the menu | Required |
Opening a sub-menu of a sub-menu | Hovering over the parent menu item | Required |
Closing a sub-menu of a sub-menu | Hovering over another parent menu item, left click on a menu item in the sub-menu (which does not contain another sub-menu), click outside the menu | Required |
Selection of a menu item | Left click on the menu item | Required |
Programming/interfaces
Permalink "Programming/interfaces"No. | Property | Description | Classification | Reference |
---|---|---|---|---|
543 | Role | The menu role must be communicated to the Accessibility API (see |
Information about this article
You are welcome to send feedback by email about our handout!