question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

“Sticky” content overlaps dropdown menus

See original GitHub issue

“Sticky” content (using the .sticky-top class for example) overlap dropdown menus. This doesn’t make sense, has been raised before (#28569, #28590, #28926) without any explanation, other than a shoot-down about not rearranging the z-index scale because it’s been like that for however long.

Sorry, but having “sticky” content slide over dropdown menus doesn’t make any sense, whatsoever. So what is the actual rationale for leaving it like this and not even considering fixing it?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
martinbeancommented, Sep 26, 2020

@mdo Cool 🙂

I’m currently overriding the z-indexes in my own project to work around this, but wanted to raise it as it does seem to go against expectations. But I can understand it might get complicated with sticky navbars with dropdowns (where the dropdown needs a higher z-index than the sticky navbar) but then sticky content (like in the example above) that should sit underneath. Maybe the z-index hierarchy should go like this (highest to lowest):

  1. Dropdowns (always on top of “sticky” elements, be them navbars or content as per my example).
  2. Sticky navbars (so they are always above sticky content).
  3. Sticky content, such as the sticky sidebar content example.
2reactions
mdocommented, Sep 25, 2020

That’s more than fair, I get that issue. I think sticky content wasn’t on our minds because we were look at is like sticky navigation in the form of navbars and what not. This is definitely a use case we should account for and would require a z-index update in v5. Not sure what we could do about v4 though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 4 sticky dropdown and sticky nav overlapping ...
If I click on the dropdown, the vertical (blue) menu is the main one to click. The problem has suddenly appeared after adding...
Read more >
Progress Bar Overlaps Drop Down Menu on Mobile
I targeted my sticky header with its CSS class to get the bar to appear below it. It's working almost perfectly, except on...
Read more >
6.2.4.3 Logo overlapping menu items on tablet landscape ...
First go to WP Admin -> Qode Options -> Header -> Header Type, select Sticky Divided, and save. Then go to WP Admin...
Read more >
How to Avoid Sticky Table of Content From Overlapping in ...
Due to different themes, you could encounter a Sticky Table of Content overlapping with your header menu or footer.
Read more >
Overlapping Sections + Sticky Header and Footer ... - YouTube
This tutorial shows how you can make Elementor sections overlap. Create an overlapping sections effect alongside with a sticky header and a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found