mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(expansion-panel): elevation transition not working (#12860)
Fixes the elevation transition being applied to the expansion panel and then being overridden immediately by the margin transition.
This commit is contained in:
committed by
Jeremy Elbourn
parent
7bc8670d3f
commit
ac8ed31d36
@@ -5,13 +5,13 @@
|
||||
.mat-expansion-panel {
|
||||
$border-radius: 4px;
|
||||
|
||||
@include mat-elevation-transition;
|
||||
@include mat-overridable-elevation(2);
|
||||
box-sizing: content-box;
|
||||
display: block;
|
||||
margin: 0;
|
||||
transition: margin 225ms $mat-fast-out-slow-in-timing-function;
|
||||
border-radius: $border-radius;
|
||||
transition: margin 225ms $mat-fast-out-slow-in-timing-function,
|
||||
mat-elevation-transition-property-value();
|
||||
|
||||
.mat-accordion & {
|
||||
&:not(.mat-expanded), &:not(.mat-expansion-panel-spacing) {
|
||||
|
||||
Reference in New Issue
Block a user