Synonyms: Symbols bar, toolbox, command bar tab
See also: Menu , group , menu button
Toolbars serve the grouping of interactive elements for the editing of content or data (see DIN EN ISO 9241-161: 8.49).
A toolbar contains interactive elements (in most cases, buttons or toggle switches) that are grouped visually with a border, for example. The contents of the toolbar are usually arranged horizontally above or below the area, the contents of which are edited with the elements of the toolbar. The elements of the toolbar can be arranged in several lines. For toolbars with several buttons, icons are often used to label the buttons due to space-related constraints.
Presentation
Permalink "Presentation"Only those requirements that are directly related to the toolbar are described below. Requirements regarding interactive elements within the toolbar are described at the respective element.
No. | Property | Description | Classification | Reference |
---|---|---|---|---|
350 | Resizing | All elements of the toolbar must be perceptible and operable with a font size adjustment of up to 400% (and a resulting display width of 320 px),
| Must | EN 301 549: 9.1.4.10, 11.1.4.10 |
351 | Grouping | To make the use of the keyboard visible, the toolbar should be designed in such a way that its elements can be identified as belonging together. Note: This can take place, for example, with a border or position and arrangement. | Should | DIN EN ISO 9241-125: 5.1.8 |
Operation
Permalink "Operation"Nr. | Eigenschaft | Beschreibung | Klassifizierung | Referenz |
---|---|---|---|---|
352 | Use of the keyboard | It must be possible to access, operate and exit the interactive elements in the toolbar with the keyboard (see Use of the keyboard table, below). | Must | EN 301 549: 9.2.1.1, 11.2.1.1, 9.2.1.2, 11.2.1.2 |
353 | Use of the keyboard | The toolbar may not contain any control elements that are operated by the keys designed for navigation through the toolbar. Note 1: This can affect input fields and drop-down lists, for example, as they are operated with the arrow keys. Note 2: Alternatively, keyboard shortcuts must be implemented and documented with which it is possible to exit the control elements. | Must | EN 301 549: 11.2.1.1 |
354 | Use of the keyboard | If the toolbar is only accessible by |
Use of the keyboard: toolbar
Permalink "Use of the keyboard: toolbar"Action | Key | Classification |
---|---|---|
Focusing of the toolbar (first or last focused element) | TAB Note: Alternatively, toolbars can be accessed by the area navigation or by keyboard shortcut. | Required |
Exiting the toolbar | TAB Note: Alternatively, toolbars can be exited by the area navigation or an expected change of context after the operation of an element in the toolbar. | Required |
Navigating within the toolbar |
| Required |
Quick navigation to the first and/or last element within the toolbar | POS1, END | Recommended |
Programming/interfaces
Permalink "Programming/interfaces"No. | Property | Description | Classification | Reference |
---|---|---|---|---|
360 | Role | The toolbar role must be communicated to the |
Practical tip: toolbar in Web applications
Permalink "Practical tip: toolbar in Web applications"Screen reader output
Permalink "Screen reader output"With TAB navigation:
- JAWS: [label] symbols bar
- NVDA: [label] toolbar
- Windows Narrator: [label] symbols bar
With the virtual cursor :
- JAWS: Toolbar with [amount] buttons … toolbar end
- NVDA: Toolbar … outside the toolbar
- Windows Narrator: -
HTML
Permalink "HTML"There is no element for toolbars in HTML. Instead of this, buttons and other control elements can be grouped in a list (<menu>
and <li>
), a labeled region (e.g. <section>
) or form field group (<fieldset>
, labeled with <legend>
). The navigation between the elements then takes place with the TAB key and not the arrow keys. To support the efficient keyboard navigation, it should be possible to skip the region and/or form field group (see practical tip on efficient navigation).
Further information: 4.4.7 The menu element - HTML Standard (whatwg.org) (External Link), 4.3.3 The section element - HTML Standard (whatwg.org) (External Link) 4.10.15 The fieldset element - HTML Standard (whatwg.org)
ARIA
Permalink "ARIA"When implementing toolbars, the following should be taken into account:
- The role is communicated with
role=toolbar
. - The toolbar should be labeled with
aria-label
oraria-labelledby
. - A non-standard vertical orientation of the toolbar can be specified with
aria-orientation=vertical
. Frequently, the orientation is not output by the assistive technology, so that with a vertically oriented toolbar, operation with all arrow keys should be possible. - The toolbar should also be visually recognizable as such, so that sighted keyboard users are able to recognize the operation with the arrow keys.
- The toolbar should contain at least three control elements.
- The visible elements within the toolbar and the programmatically focused element should have the same position and size.
Further information: toolbar role - Accessible Rich Internet Applications (WAI-ARIA) 1.2 (w3.org) (External Link), Toolbar Pattern | APG | WAI | W3C
Information about this article
You are welcome to send feedback by email about our handout!