Currently it's really hard to place fixed elements at the top of the page because Navigation's Top Bar doesn't use Drupal.displace().
We should fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | Screenshot 2025-06-03 at 2.07.42 PM.png | 153.68 KB | bernardm28 |
| #10 | without.gif | 937.43 KB | finnsky |
| #10 | with.gif | 951.78 KB | finnsky |
| #5 | asdf___Drush_Site-Install.png | 393.55 KB | mherchel |
Issue fork drupal-3526266
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:
- 3526266-nav-top-bar
changes, plain diff MR !12217
- 3526266-navigation-top-bar
compare
Comments
Comment #3
mherchelComment #5
mherchelReady for review! Screenshot attached :D
Comment #6
mherchelComment #7
solideogloria commentedFixed typo
Comment #8
andy-blumComment #9
finnsky commentedThank you, but seems not a quick fix here.
1. Position of submenu without top bar
2. Also with top bar submenu should be aligned with top of page imo
To fix them we need probably more delicate way to detect when top bar is empty.
Comment #10
finnsky commentedComment #11
mherchelGood catch!
The issue was that the top bar was rendering, even if it didn't have content, which pushed down the popover.
I added a check for content within the twig file. Should be good to go. Thank you!
Comment #12
bernardm28 commentedI tested this on the tugboat link and a clean throwaway Drupal 11 site.

The top toolbar displays properly after this fix and no longer remains unrendered.
Comment #14
nod_Committed and pushed 6bdfd060b13 to 11.x and f6ae1909c44 to 11.2.x. Thanks!
Comment #17
nod_