Skip to content

feat(sidenav): allow sidenav to be placed in a separate component #9438

@gtranter

Description

@gtranter

Bug, feature request, or proposal:

Bug?

What is the expected behavior?

Right sidenav in over mode shows backdrop when open

What is the current behavior?

Backdrop is not shown. DOM structure is incorrect - mat-sidenav is inside mat-sidenav-content.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-fxp7dt

A custom component that has mat-sidenav-container, mat-sidenav (start/left), plus ng-content slots for the main content, left sidenav content, and another mat-sidenav.

The right side nav drawer opens and closes but the backdrop isn't drawn, and therefore the click-out close behavior is missing. DOM structure is messed up - the second sidenav is placed inside mat-sidenav-content.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

v5

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions