AI Disclosure

Used AI to analyze and fix. Human tested and approved.

Problem/Motivation

Some toolbar buttons float and have overlapping issues below 16.5em.

Toobar bar before patch

Upstream issue

This issue is for #3035791, which is still in the core queue.
Transfer request: https://git.drupalcode.org/project/infrastructure/-/work_items/3606980

Steps to reproduce

With Toolbar and Contextual enabled, narrow the window down to 16.5em.
The toggle contextual edit links button floats under the user profile button.

Proposed resolution

Use flex below 16.5, which will work for all floated items.
#3035791 tried to fix it with media queries, but is targeting individual items and this is a broader fix.

The announcements button would have needed an additional fix if we were clearing floats. Using flex column on the wrapper under 16.5em clears the floats and makes a column, which will fix the ones I've seen so far. If there was something that was absolutely positioned, it might cause an issue, but at least it would be an exception and most would still work.

Fixed with flex:
Toolbar 16.5em flex

With float on the contextual edit button, announcements is still misaligned:
Toolbar 16.5 float

Remaining tasks

Review and merge.

User interface changes

Consistent reflow of toolbar buttons below 16.5em.

Issue fork toolbar-3641735

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mortona2k created an issue. See original summary.

mortona2k’s picture

mortona2k’s picture

Issue summary: View changes
mortona2k’s picture

Issue summary: View changes
mortona2k’s picture

Issue summary: View changes
dydave’s picture

Thanks a lot Andrew (@mortona2k)! 🙏
Very very quick message to let you know I've seen all your updates to the Toolbar issue queue and that's super helpful!

Please let me wrap up the Admin Toolbar D12 release and I'll circle back to the Toolbar module, see the final steps in AT:
#3565206-42: [Meta] Roadplan for Admin Toolbar 3.6.x and 3.7.x

Thanks again for all your help maintaining all these modules! 😊
(I'm receiving all notifications by email from the Toolbar issue queue 👍)

mortona2k’s picture

I started with fixing issues with sticky table headers and wandered into toolbar positioning. I fixed some bugs that have annoyed me for years and then asked claude about the related issues. Each one just needed a little fix.

There are some inter-dependencies so it might be easier to combine the issues and test together. Or I can help with the merge order.