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

Commit 7a003ac

Browse files
sayriscopybara-github
authored andcommitted
fix(tooltip): Adds "will-change" into CSS to prevent the tooltip from "jittering" when animating in.
PiperOrigin-RevId: 355527004
1 parent 15a4d40 commit 7a003ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/mdc-tooltip/_tooltip.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ $_title-type-scale: subtitle2;
140140
max-height: $_max-height;
141141
box-sizing: border-box;
142142
overflow: hidden;
143-
transform: scale(0.8);
144143
text-align: center;
144+
transform: scale(0.8);
145145
opacity: 0;
146+
will-change: transform, opacity;
146147
outline: 1px solid transparent;
147148
}
148149

0 commit comments

Comments
 (0)