Currently, I am working on a web application that features a navigation bar at the bottom of the screen. To enhance visibility, I decided to apply a linear gradient overlay above the underlying elements. This screenshot illustrates what I mean. However, I have encountered an issue where clickable items positioned just below the overlay cannot be accessed. Adjusting the z-index is not a viable solution as it would undermine the purpose of the overlay.
The overlay functions as a background applied to the menu div, which is situated at the bottommost position in the DOM.
The CSS for the overlay is as follows:
div{
display: flex;
align-items: center;
justify-content: space-around;
position: sticky;
bottom: 0;
padding: 5em 0 1em 0;
background: linear-gradient(var(--opaque-main-background), var(--main-background));
}
All other elements, including those intended to be clickable, do not have specific positioning. Since this is a Vue app, if you require any additional information that may have been overlooked, you can access a live demo here. Resizing the window may trigger the issue.
Is there a straightforward solution to this problem that I am currently overlooking?