Skip to content

Commit

Permalink
feat(Card): sets CardBody scrollable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Firsov committed Apr 2, 2019
1 parent a9723f3 commit 65afba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Card/CardBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type CardBodyProps = {
class CardBody extends PureComponent<CardBodyProps> {
static defaultProps = {
padding: 'md',
scrollable: true,
};

render() {
Expand Down
3 changes: 3 additions & 0 deletions src/components/Card/__snapshots__/Card.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ exports[`<Card /> should render Card components 1`] = `
</CardHeader>
<CardBody
padding="lg"
scrollable={true}
>
<Boost(cardBody)
padding="lg"
scrollable={true}
tagName="div"
>
<Tag
className="emotion-0 emotion-1"
padding="lg"
scrollable={true}
tagName="div"
>
<div
Expand Down

0 comments on commit 65afba2

Please sign in to comment.