There’s some unnecessary shifting around of icons and text while the state of the nav changes between the narrow and wide states.
When changing from wide to narrow:
- The text disappears (good)
- The icons get horizontally centered (bad)
When changing from narrow to wide
- The icons go back to left aligned (ok)
- The text starts off squished and some menu items wrap. Additionally some of the submenu expand buttons wrap underneath as its opening (bad)
My thought is we could utilize the transitionend event to somehow fix this and make it less janky.
Here's a gif with the animation slowed down.

| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot 2023-08-09 at 9.28.45 AM.png | 78.08 KB | claireristow |
| nav-animation.gif | 280.29 KB | mherchel |
Issue fork navigation-3378781
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
Comment #3
hooroomooworking on this
Comment #4
hooroomooComment #5
hooroomooComment #7
hooroomooComment #8
claireristow commentedThanks for your work on this @Utkarsh_33 and @hooroomoo, it's looking great!
I noticed the following two items that still need fixing:
Comment #9
hooroomooComment #10
hooroomooComment #11
hooroomooComment #12
claireristow commentedComment #14
claireristow commented