Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(menu-surface): Correct open animation issue (#4371)
Browse files Browse the repository at this point in the history
(cherry picked from commit ed4c945)
  • Loading branch information
jamesmfriedman authored and acdvorak committed Feb 19, 2019
1 parent 461e69e commit 189957b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/mdc-menu-surface/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
z-index: $mdc-menu-surface-z-index;
}

@include mdc-feature-targets($feat-animation) {
transition:
opacity $mdc-menu-surface-fade-in-duration linear,
transform $mdc-menu-surface-scale-duration $mdc-animation-deceleration-curve-timing-function;
}

&:focus {
@include mdc-feature-targets($feat-structure) {
outline: none;
Expand All @@ -133,12 +139,6 @@
transform: scale(.8);
opacity: 0;
}

@include mdc-feature-targets($feat-animation) {
transition:
opacity $mdc-menu-surface-fade-in-duration linear,
transform $mdc-menu-surface-scale-duration $mdc-animation-deceleration-curve-timing-function;
}
}

&--animating-closed {
Expand Down

0 comments on commit 189957b

Please sign in to comment.