Skip to content

Commit 4d33449

Browse files
devversionkara
authored andcommitted
fix(sidenav): animate content resizing for side mode. (#2486)
1 parent 8a6d902 commit 4d33449

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/lib/sidenav/sidenav-transitions.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ md-sidenav {
66
}
77

88
.md-sidenav-content {
9-
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function;
9+
transition: {
10+
duration: $swift-ease-out-duration;
11+
timing-function: $swift-ease-out-timing-function;
12+
property: transform, margin-left, margin-right;
13+
}
1014
}
1115

1216
.md-sidenav-backdrop.md-sidenav-shown {

src/lib/sidenav/sidenav.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ The sidenav can render in one of three different ways based on the `mode` proper
2727
| push | Sidenav _pushes_ the primary content out of its way, also covering it with a backdrop |
2828
| side | Sidenav appears _side-by-side_ with the primary content |
2929

30+
Using the `side` mode on mobile devices can affect the performance and is also not recommended by the
31+
[Material Design specification](https://material.io/guidelines/patterns/navigation-drawer.html#navigation-drawer-behavior).
3032

3133
### Positioning the sidenav
3234
The `align` property determines whether the sidenav appears at the `"start"` or `"end"` of the

0 commit comments

Comments
 (0)