Skip to content

Commit

Permalink
Ensure CardHeader can be styled (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
haltsir authored Sep 5, 2018
1 parent 1e5c042 commit 58ec20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Card/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const CardHeaderContainer = styled('header')`
${noHeadingStyles};
`;

const CardHeader = ({ onClose, children }) => (
<CardHeaderContainer>
const CardHeader = ({ onClose, children, ...props }) => (
<CardHeaderContainer {...props}>
{children}
{onClose && <CloseButton onClick={onClose} />}
</CardHeaderContainer>
Expand Down

0 comments on commit 58ec20a

Please sign in to comment.