Sidenav always visible when nested elements use fullscreen. #7636
Labels
area: material/sidenav
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Bug/proposal
Hey guys,
I'm using the sidenav component which puts all content inside
'mat-sidenav-content'
that contains setsz-index: 1;
. This is causing an issue any nested components require fullscreen because the side navigation is always visible no matter what z-index I use. I expect this to be because themat-sidenav-content
has a priority over the child elements.It ends up looking like this:
What is the expected behavior?
I would like the ability for nested components to use fullscreen without manually hiding the sidenav.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Using Angular material 2.0.0-beta.12 & Angular 4.4.4.
Is there anything else we should know?
It seems that setting z-index to -2 to
.mat-drawer-content
or .mat-drawer.mat-drawer-side
classes fixes the issue, but I'm unsure as to any other side effects this might have. I have not seen any though.After this change it looks as I would expect it to:
The text was updated successfully, but these errors were encountered: