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.

Sidenav and overflow menu z-index overlap

See original GitHub issue

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having.

When using an overflowmenu with overflowmenuitems in a sidenav component, the z-index has it set such that the overflowmenuitem is behind the sidenav component, and isn’t clickable (or visible, depending on style set).

sidenav has z-index of 8000. overflowmenuitem has z-index ofo 6000.

Is this issue related to a specific component?

Yes, sidenav and overflowmenu

What did you expect to happen? What happened instead? What would you like to see changed?

overflowmenuitem should be clickable and/or visible.

What browser are you working in?

Firefox.

What version of the Carbon Design System are you using?

10.16.0

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Steps to reproduce the issue

  1. Step one Createt a sidenav component
  2. Step two Create an overflowmenu in the sidenav component
  3. Step three Unclickable
  4. etc.

Please create a reduced test case in CodeSandbox

Additional information

  • Screenshots or code
  • Notes

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
tw15egancommented, Nov 4, 2020

We could possibly add an overflow menu specific z-index override inside the modal and sidenav styles, but I wouldn’t change the overall z-index map.

Read more comments on GitHub >

github_iconTop Results From Across the Web

z-index not working on side nav - Stack Overflow
I am trying to have the hamburger menu " ...
Read more >
Fixed width sidebar overlapping content - z-index not working!
Hi! I am creating a responsive blog-site where one sidebar is 12% of the body (see codepen, the light-gray one). The sidebar itself...
Read more >
How To Create a Side Navigation Dropdown - W3Schools
Click on the dropdown button to open the dropdown menu inside the side navigation. This sidebar is of full height (100%) and always...
Read more >
4 reasons your z-index isn't working (and how to fix it)
Z -index is a CSS property that allows you to position elements in layers on top of one another. It's super useful, and...
Read more >
How to Add a Sliding Sidebar Menu to Your Site
To make it appear above the main page when open, we need to set its z-index to something bigger than .overlay and the...
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