Active
Project:
Toolbar
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Aug 2020 at 13:30 UTC
Updated:
21 Sep 2026 at 08:02 UTC
Jump to comment: Most recent
Some buttons pushed to the right side of the toolbar, such as edit and tour, are positioned there in a manner that results in their appearance differing from the DOM order.

Enable several modules that add toolbar buttons. Include tour and quickedit. Tab through the toolbar and notice how focus does not occur in the order the buttons appear.
Set the toolbar-bar to display: flex so floats are not necessary.
Add a property to '#type' => 'toolbar_item' that provides the option of placing the item on the right side of the toolbar.
In a preprocessor (or somewhere else suitable), sort the array of toolbar items and place the ones with that new property on the end.

| Comment | File | Size | Author |
|---|---|---|---|
| out-of-order.png | 212.62 KB | bnjmnm |
Comments
Comment #2
larowlanThis issue was triaged by bug-smash initiative and confirmed - thanks @bnjmnm
Comment #3
larowlanComment #11
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 #12
quietone commentedToolbar has moved to contrib