Skip to content

Commit

Permalink
fix(expansion-panel): elevation transition not working (#12860)
Browse files Browse the repository at this point in the history
Fixes the elevation transition being applied to the expansion panel and then being overridden immediately by the margin transition.
  • Loading branch information
crisbeto authored and jelbourn committed Aug 30, 2018
1 parent 7bc8670 commit ac8ed31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/expansion/expansion-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ac8ed31

Please sign in to comment.