Problem/Motivation
When navigating to a new page, the navigation toggle button is first rendered on closed position which leads to flickering. Ideally we could render the toggle initially in the correct position.

Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| CleanShot 2024-04-27 at 10.12.57.gif | 440.54 KB | lauriii |
Issue fork drupal-3443866
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:
- 3443866-the-toggle-button-flickering
changes, plain diff MR !7791
Comments
Comment #2
finnsky commentedit should use transitions enabled after full load.
we have special attribute for this:
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/navig...
Comment #5
finnsky commentedI've added a bit deeper fix. We need to pause all transitions until scripts loaded.
Comment #6
finnsky commentedComment #7
markusvjh commentedGreat work. Tested, and the toggle button no longer flickers with the spin-around. I do get a slight flicker with a dash '-' showing up above the toggle button and next to shortcuts, but that could be a separate issue.
Comment #8
finnsky commentedRE #7 Yes we have this ticket about shortcuts menu. You are right.
Comment #12
nod_Committed 20d5c8a and pushed to 11.x. Thanks!