-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sidenav): split into drawer and sidenav (#6260)
* refactor(sidenav): split into drawer and sidenav * s/side/position * fix tests * fix bad rebase
- Loading branch information
1 parent
0f02a11
commit 372436c
Showing
13 changed files
with
700 additions
and
619 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
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" | ||
[class.mat-drawer-shown]="_isShowingBackdrop()"></div> | ||
|
||
<ng-content select="md-drawer, mat-drawer, md-sidenav, mat-sidenav"></ng-content> | ||
|
||
<div class="mat-drawer-content" [ngStyle]="_styles" cdk-scrollable> | ||
<ng-content></ng-content> | ||
</div> |
6 changes: 3 additions & 3 deletions
6
src/lib/sidenav/sidenav-transitions.scss → src/lib/sidenav/drawer-transitions.scss
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,16 +1,16 @@ | ||
// Separate transitions to be able to disable them in unit tests by omitting this file. | ||
@import '../core/style/variables'; | ||
|
||
.mat-sidenav-transition { | ||
.mat-sidenav-content { | ||
.mat-drawer-transition { | ||
.mat-drawer-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 { | ||
.mat-drawer-backdrop.mat-drawer-shown { | ||
transition: background-color $swift-ease-out-duration $swift-ease-out-timing-function; | ||
} | ||
} |
File renamed without changes.
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
Oops, something went wrong.