Skip to content

Commit 2bd607c

Browse files
mmalerbaandrewseguin
authored andcommitted
style(sidenav): hide drawer shadow in 'side' mode (#2809)
1 parent 23ab152 commit 2bd607c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/lib/sidenav/sidenav.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
}
2020

2121
&.md-sidenav-opening, &.md-sidenav-opened {
22-
// The elevation of z-16 is noted in the design specifications.
23-
// See https://material.io/guidelines/patterns/navigation-drawer.html#
24-
@include md-elevation(16);
2522
transform: translate3d($open, 0, 0);
2623
}
2724
}
@@ -126,6 +123,14 @@ md-sidenav {
126123
@include md-sidenav-transition(0, -100%);
127124
}
128125
}
126+
127+
&.md-sidenav-opening, &.md-sidenav-opened {
128+
&:not(.md-sidenav-side) {
129+
// The elevation of z-16 is noted in the design specifications.
130+
// See https://material.io/guidelines/patterns/navigation-drawer.html#
131+
@include md-elevation(16);
132+
}
133+
}
129134
}
130135

131136
.md-sidenav-focus-trap {

0 commit comments

Comments
 (0)