Skip to content

Commit 4fd4990

Browse files
committed
fix: apply elevation as prop for md3
1 parent 2d48520 commit 4fd4990

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/Card/Card.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,12 @@ const Card = (
291291
ref={ref}
292292
style={[
293293
isV3 && !isMode('elevated') && { backgroundColor },
294-
!isV3 && isMode('outlined')
295-
? styles.resetElevation
296-
: {
297-
elevation: computedElevation as unknown as number,
298-
},
294+
!isV3 &&
295+
(isMode('outlined')
296+
? styles.resetElevation
297+
: {
298+
elevation: computedElevation as unknown as number,
299+
}),
299300
borderRadiusCombinedStyles,
300301
style,
301302
]}

src/components/__tests__/Card/__snapshots__/Card.test.tsx.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ exports[`Card renders an outlined card 1`] = `
2424
{
2525
"backgroundColor": "rgba(255, 251, 254, 1)",
2626
"borderRadius": 12,
27-
"elevation": 1,
2827
"flex": undefined,
2928
"shadowColor": "#000",
3029
"shadowOffset": {

0 commit comments

Comments
 (0)