-
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(material/tabs): switch away from animations module
Reworks the tabs so they don't depend on the animations module anymore. This is both simpler and avoids some of the pitfalls of the animations module.
- Loading branch information
Showing
10 changed files
with
232 additions
and
234 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,10 +1,9 @@ | ||
<div class="mat-mdc-tab-body-content" #content | ||
[@translateTab]="{ | ||
value: _position, | ||
params: {animationDuration: animationDuration} | ||
}" | ||
(@translateTab.start)="_onTranslateTabStarted($event)" | ||
(@translateTab.done)="_translateTabComplete.next($event)" | ||
cdkScrollable> | ||
<div | ||
class="mat-mdc-tab-body-content" | ||
#content | ||
cdkScrollable | ||
[class.mat-tab-body-content-left]="_position === 'left'" | ||
[class.mat-tab-body-content-right]="_position === 'right'" | ||
[class.mat-tab-body-content-can-animate]="_position === 'center' || _previousPosition === 'center'"> | ||
<ng-template matTabBodyHost></ng-template> | ||
</div> |
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
Oops, something went wrong.