-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
Description
A toolbar is a way to group related controls together and provide users quick access to commands. There is no dedicated <toolbar>
element in HTML today; developers instead rely on generic containers like <div>
with ARIA roles and JS to handle navigation. This proposal introduces a native <toolbar>
element to give authors a semantic, accessible way to do this.
Toolbars are a common pattern across platforms. A standard element will make them easier to implement consistently on the web, while mapping directly to existing ARIA concepts. This helps assistive technology users understand relationships between grouped controls, and navigate between them more efficiently.
Use cases:
- The formatting toolbar in a document editor (bold, italic, underline, font family).
- The main command toolbar in a drawing or photo editing app.
- A simple toolbar with a search field and filter buttons in a catalogue.
Proposed design
At a high level, this proposal lets developers:
- Use
<toolbar>
to group a set of interactive controls. - Expose accessible grouping and navigation consistent with ARIA
toolbar
behaviour.
smhigley