Problem/Motivation
Some top-level toolbar items have trays associated with them, while others don't. Currently there is no visual way to know which buttons have trays associated with them.

Here we see the the toolbar with 5 top-level items, and no tray is open. The manage, shortcuts, and admin (user menu) items all have trays associated with them, while the tour and edit buttons don't. There's no way to know which ones have a tray.

On an admin page, we see the the toolbar has a "back to site" link. 3 more top-level items (manage, shortcuts, and admin user menu) have trays associated with them, Again, there's no way to know which ones have a tray.
Toolbar items which have trays:
- Manage
- Shortcuts
- User menu
- Devel (contrib module)
- Environment indicator (contrib module)
Toolbar items which don't have trays:
- Home
- Back to site
- Tour
- Edit
If toolbar items with tray had an indicator that they control a tray, it would help users to understand what their behaviour is.
The submenus inside the Manage tray already have icons for this, as do details/summary elements elsewhere in page content.
Proposed resolution
Add a visual signifier to toolbars items which have visual trays associated with them.
Scope:
- This is about adding a visual indicator to show which top-level toolbar items have trays.
- A separate issue will improve the way this is conveyed to assistive tech - #3090120: Improve accessibility semantics for Toolbar buttons with trays.
Remaining tasks
- Design.
- Update CSS.
- Tests? e.g. a functional test to confirm the presence of a CSS class on toolbar items with trays, and it's absence from toolbar items without trays.
User interface changes
Adds a visual indicator to show which toolbar buttons have trays associated with them.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 309705-toolbar-trays-vs-no-trays-2.png | 23.95 KB | andrewmacpherson |
| #2 | 309705-toolbar-trays-vs-no-trays-1.png | 21.34 KB | andrewmacpherson |
Comments
Comment #2
andrewmacpherson commentedComment #3
andrewmacpherson commentedComment #5
andrewmacpherson commentedComment #13
quietone commentedThe Toolbar Module was approved for removal in #3476882: [Policy] Move Toolbar module to contrib.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3484850: [meta] Tasks to deprecate Toolbar module and the removal work in #3488828: [meta] Tasks to remove Toolbar module.
Toolbar will be moved to a contributed project before Drupal 12.0.0 is released.
Comment #14
quietone commentedThe Toolbar module have moved from core to contrib.