I am currently facing an issue with bringing the toolbar to the forefront of the page. When I scroll down, the elements on the page end up covering the toolbar which is not the desired behavior.
Below is the CSS code for the toolbar:
.maintoolbar.mat-toolbar.mat-primary {
background-color: rgba(0,0,0,.7);
height: 60px;
padding: 20px;
position: fixed;
top: 0;
z-index: -1;
}
The z-index property doesn't seem to be effective in this case. I am looking for a better solution that will prevent other elements from overlapping the toolbar when scrolling down. Any suggestions?