Skip to content

Commit 25fed4c

Browse files
authored
fix: prevent elevation animation for contained Card mode (#4681)
1 parent eab4252 commit 25fed4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Card/Card.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ const Card = (
213213
]);
214214

215215
const runElevationAnimation = (pressType: HandlePressType) => {
216+
if (isV3 && isMode('contained')) {
217+
return;
218+
}
219+
216220
const isPressTypeIn = pressType === 'in';
217221
if (dark && isAdaptiveMode) {
218222
Animated.timing(elevationDarkAdaptive, {

0 commit comments

Comments
 (0)