Submenu positioned behind nav container

I have made a site with a sicky header (Sticky Header), and for that header to work, it needs a z-index of 2. That is okay on its own, but when i combine it with the submenus, that i also need, that the latest frontity talks showed me, the submenu gets placed behind the nav container.

I have read online for a couple of hours now, and from what i can see, this is because a z-index of a child can never override the z-index of its parent, even if you set it higher. So my question is, does anyone have a workaround for this?

I have the site live here: https://pvcalmenning.vercel.app, and you can see the problem there. The menu with a submenu is “Produkter”

Hi @kasper.

Can you please provide a repo or code-sandbox with your code? This is especially helpful to find solutions of technical issues with specific code

Detailing the info suggested here when having issues will help the community to provide the best possible help as quickly and as efficiently as possible.

Of course, here it is:

I found the problem, it was a overflow: hidden; in the navbar container.