arkon / ng-sidebar

[Inactive] Angular sidebar component.
https://echeung.me/ng-sidebar
MIT License
388 stars 136 forks source link

Backdrop doesn't cover nested sidebar #194

Closed napowelson closed 4 years ago

napowelson commented 4 years ago

In my application I have a main sidebar for the "main menu", and a drawer in a sub-module. When the drawer is visible, and the menu is opened, the backdrop doesn't cover the nested.

Here is a quick demo: https://stackblitz.com/edit/angular-ng-sidebar-rmsa6l

Is there a way to fix this with CSS? I can't seem to be able to target the backdrop. If not with CSS, is there another way to fix it?

arkon commented 4 years ago

I think you should be able to pass in classes to the backdrop and sidebars and set their z-index values manually.

napowelson commented 4 years ago

The way I was able to fix it was with the following code in the angular feature module: :host ::ng-deep .ng-sidebar{ z-index: inherit; }