Skip to content

Commit ac8ed31

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent 7bc8670 commit ac8ed31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/expansion/expansion-panel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
.mat-expansion-panel {
66
$border-radius: 4px;
77

8-
@include mat-elevation-transition;
98
@include mat-overridable-elevation(2);
109
box-sizing: content-box;
1110
display: block;
1211
margin: 0;
13-
transition: margin 225ms $mat-fast-out-slow-in-timing-function;
1412
border-radius: $border-radius;
13+
transition: margin 225ms $mat-fast-out-slow-in-timing-function,
14+
mat-elevation-transition-property-value();
1515

1616
.mat-accordion & {
1717
&:not(.mat-expanded), &:not(.mat-expansion-panel-spacing) {

0 commit comments

Comments
 (0)