forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(material/expansion): switch away from animations module
Reworks the expansion panel to animate purely with CSS, rather than going through the `@angular/animations` module. This simplifies the setup and allows us to resolve several long-standing bug reports.
- Loading branch information
Showing
9 changed files
with
118 additions
and
123 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
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,15 +1,14 @@ | ||
<ng-content select="mat-expansion-panel-header"></ng-content> | ||
<div class="mat-expansion-panel-content" | ||
role="region" | ||
[@bodyExpansion]="_getExpandedState()" | ||
(@bodyExpansion.start)="_animationStarted($event)" | ||
(@bodyExpansion.done)="_animationDone($event)" | ||
[attr.aria-labelledby]="_headerId" | ||
[id]="id" | ||
#body> | ||
<div class="mat-expansion-panel-body"> | ||
<ng-content></ng-content> | ||
<ng-template [cdkPortalOutlet]="_portal"></ng-template> | ||
<div class="mat-expansion-panel-content-wrapper" [attr.inert]="expanded ? null : ''" #bodyWrapper> | ||
<div class="mat-expansion-panel-content" | ||
role="region" | ||
[attr.aria-labelledby]="_headerId" | ||
[id]="id" | ||
#body> | ||
<div class="mat-expansion-panel-body"> | ||
<ng-content></ng-content> | ||
<ng-template [cdkPortalOutlet]="_portal"></ng-template> | ||
</div> | ||
<ng-content select="mat-action-row"></ng-content> | ||
</div> | ||
<ng-content select="mat-action-row"></ng-content> | ||
</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.