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

Commit 189957b

Browse files
jamesmfriedmanacdvorak
authored andcommitted
fix(menu-surface): Correct open animation issue (#4371)
(cherry picked from commit ed4c945)
1 parent 461e69e commit 189957b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/mdc-menu-surface/_mixins.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@
112112
z-index: $mdc-menu-surface-z-index;
113113
}
114114

115+
@include mdc-feature-targets($feat-animation) {
116+
transition:
117+
opacity $mdc-menu-surface-fade-in-duration linear,
118+
transform $mdc-menu-surface-scale-duration $mdc-animation-deceleration-curve-timing-function;
119+
}
120+
115121
&:focus {
116122
@include mdc-feature-targets($feat-structure) {
117123
outline: none;
@@ -133,12 +139,6 @@
133139
transform: scale(.8);
134140
opacity: 0;
135141
}
136-
137-
@include mdc-feature-targets($feat-animation) {
138-
transition:
139-
opacity $mdc-menu-surface-fade-in-duration linear,
140-
transform $mdc-menu-surface-scale-duration $mdc-animation-deceleration-curve-timing-function;
141-
}
142142
}
143143

144144
&--animating-closed {

0 commit comments

Comments
 (0)