-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sidenav): fix animation issue for initially open sidenav (#3045)
* fix animation issue for initially open sidenav * rename * add import for rxjs first operator
- Loading branch information
1 parent
a08dc55
commit 37e4bad
Showing
2 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
// Separate transitions to be able to disable them in unit tests by omitting this file. | ||
@import '../core/style/variables'; | ||
|
||
.mat-sidenav { | ||
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function; | ||
} | ||
.mat-sidenav-transition { | ||
.mat-sidenav { | ||
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function; | ||
} | ||
|
||
.mat-sidenav-content { | ||
transition: { | ||
duration: $swift-ease-out-duration; | ||
timing-function: $swift-ease-out-timing-function; | ||
property: transform, margin-left, margin-right; | ||
.mat-sidenav-content { | ||
transition: { | ||
duration: $swift-ease-out-duration; | ||
timing-function: $swift-ease-out-timing-function; | ||
property: transform, margin-left, margin-right; | ||
} | ||
} | ||
} | ||
|
||
.mat-sidenav-backdrop.mat-sidenav-shown { | ||
transition: background-color $swift-ease-out-duration $swift-ease-out-timing-function; | ||
.mat-sidenav-backdrop.mat-sidenav-shown { | ||
transition: background-color $swift-ease-out-duration $swift-ease-out-timing-function; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters