Skip to content

Commit 71fdd69

Browse files
committed
fix(drawer): respect NoopAnimationsModule and @.disabled binding
* Custom CSS transitions should not run if the `NoopAnimationsModule` or the `[@.disabled]` binding is being used.
1 parent cfa2d04 commit 71fdd69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/sidenav/drawer.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ $mat-drawer-over-drawer-z-index: 4;
5151
&.mat-drawer-container-explicit-backdrop .mat-drawer-side {
5252
z-index: $mat-drawer-backdrop-z-index;
5353
}
54+
55+
// Note that the `NoopAnimationsModule` is being handled inside of the component code.
56+
&.ng-animate-disabled, .ng-animate-disabled & {
57+
.mat-drawer-backdrop, .mat-drawer-content {
58+
transition: none;
59+
}
60+
}
5461
}
5562

5663
.mat-drawer-backdrop {

0 commit comments

Comments
 (0)