Skip to content

Conversation

@JayGeorge
Copy link

Due to the way Comboboxes use the Reka Popper component—which is teleported, and doesn't sit in the regular DOM—comboboxes were appearing below the global header, so it looked a little funky when you were using the site selector, like this:

2025-12-10 at 15 38 55@2x

Of the possible solutions, simply removing the z-index in the global header resolves this issue.

I may be overlooking something, but it seems like the global header doesn't actually need a z-index. Long pages still tuck underneath it while scrolling.

The global header has had z-[3] as far back as I can see in the repo history, so I can't see a decision behind it.

This PR removes it and rearranges the z-index stack now that we have one less variable.

@jackmcdade
Copy link
Member

This will let fieldtypes overlap the global nav. I'm not sure it's necessarily a bad thing though. 🤔
CleanShot 2025-12-10 at 17 13 05@2x

@JayGeorge
Copy link
Author

Ahhh, good catch. Yeah, that looks a bit funky when scrolling through content, but I think we can avoid it…

I added a lower z-index value of --z-index-above, which fixes that, while still allowing the combobox to be above.

Before adding --z-index-above to the global header

Field popovers appear above the global header

2025-12-11 at 10 29 55@2x

After

Field popovers are tucked underneath the global header

2025-12-11 at 10 34 04@2x

with the combobox still working

2025-12-11 at 10 34 25@2x

@jasonvarga
Copy link
Member

I would expect "popover" type UI elements to be on top of everything. Why would it be preferable to have the header block the thing you've most recently interacted with?

@JayGeorge
Copy link
Author

I think it feels a bit weird when scrolling

Header.Index.mp4

@jasonvarga
Copy link
Member

Hah yeah fair enough

@jasonvarga jasonvarga merged commit 458efc7 into master Dec 11, 2025
11 checks passed
@jasonvarga jasonvarga deleted the remove-global-header-z-index branch December 11, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants