Skip to content

Commit 4156d02

Browse files
committed
feat: add background color #fff to card
1 parent 2c882e7 commit 4156d02

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/@next/Card/Card.stories.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Story, Meta } from '@storybook/react';
44
import { BaseContainer } from '../../Layout/GlintsContainer/GlintsContainer';
55
import { Card, CardProps } from './Card';
66
import { Typography } from '../Typography';
7-
import { Red } from '../utilities/colors';
7+
import { Neutral, Red } from '../utilities/colors';
88
import styled from 'styled-components';
99

1010
(Card as React.FunctionComponent<CardProps>).displayName = 'Card';
@@ -162,9 +162,11 @@ const CustomHeadingSubHeadingTemplate: Story<CardProps> = args => {
162162
);
163163

164164
return (
165-
<Card {...args} heading={heading} subheading={subheading}>
166-
<Card.Section>This is a section</Card.Section>
167-
</Card>
165+
<div style={{ backgroundColor: Neutral.B99, padding: 24 }}>
166+
<Card {...args} heading={heading} subheading={subheading}>
167+
<Card.Section>This is a section</Card.Section>
168+
</Card>
169+
</div>
168170
);
169171
};
170172

src/@next/Card/CardStyle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const StyledCardContainer = styled.div`
99
box-shadow: 0px 0px 5px 0px rgba(71, 71, 71, 0.1),
1010
0px 1px 2px 0px rgba(71, 71, 71, 0.2);
1111
color: ${Neutral.B18};
12+
background-color: ${Neutral.B100};
1213
`;
1314

1415
export const StyledCardHeaderWrapper = styled.div`
732 Bytes
Loading

0 commit comments

Comments
 (0)