Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/material/sidenav/drawer-animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const matDrawerAnimations: {
// 1. Having a transform can cause elements with ripples or an animated
// transform to shift around in Chrome with an RTL layout (see #10023).
// 2. 3d transforms causes text to appear blurry on IE and Edge.
state('open, open-instant', style({
state('open, open-instant, void-rail', style({
'transform': 'none',
'visibility': 'visible',
})),
Expand All @@ -37,7 +37,7 @@ export const matDrawerAnimations: {
'visibility': 'hidden',
})),
transition('void => open-instant', animate('0ms')),
transition('void <=> open, open-instant => void',
animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))
transition('void <=> open, void-rail <=> open, open-instant => void, open-instant => void-rail',
animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))
])
};
4 changes: 4 additions & 0 deletions src/material/sidenav/drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ $mat-drawer-over-drawer-z-index: 4;
z-index: $mat-drawer-side-drawer-z-index;
}

&.mat-drawer-rail:not(.mat-drawer-opened) {
width: 200px;
}

&.mat-drawer-end {
right: 0;
transform: translate3d(100%, 0, 0);
Expand Down
Loading