As shown in the image, I have a sidebar that opens over other elements (blue color) using z-index = 1. On opening the sidebar i don't want users to see any other elements other than the sidebar. But at the end of the sidebar, I'm seeing other elements part of the page as shown in the image (Sheets A, Sheets B).
I tried giving 100vh, 500vh, 100%, auto but none of these is working. Any way to make the Z-index =1 element occupy the entire vertical screen
.navigationbar--open .navigationbar__body {
max-height: auto;
opacity: 1;
}
html
<div className="navigationbar--open">
<div className="navigationbar__heading">
<div className="foldersection">
<img src={image} className="navbar__icon" />
</div>
<FaSortDown />
</div>
<div className="navigationbar__body">
<li>Folder A</li>
<li>Folder B</li>
<li>Folder C</li>
))}
</div>
</div>
