Skip to content

Commit 65b150e

Browse files
authored
fix(card): do not apply padding to outer flex container. Fixes #554 (#556)
1 parent 8c080aa commit 65b150e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/card/card.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@ const Card = props => (
1616
width: 100%;
1717
box-shadow: ${props.type === 'raised' ? vars.shadow1Second : 'none'};
1818
border-radius: ${vars.borderRadius6};
19-
padding: ${vars.spacing16};
2019
background: ${props.theme === 'dark'
2120
? vars.colorGray95
2221
: vars.colorWhite};
2322
`,
2423
]}
2524
className={props.className}
2625
>
27-
{props.children}
26+
<div
27+
css={css`
28+
padding: ${vars.spacing16};
29+
`}
30+
>
31+
{props.children}
32+
</div>
2833
</div>
2934
);
3035

0 commit comments

Comments
 (0)