Skip to content

Commit

Permalink
Also pass className to inner component for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford authored Nov 29, 2017
1 parent 705722e commit 6761f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ const rippleStyles = {
};

const Button = ({ children, ...rest }) => {
const { disabled, small, large } = rest;
const { disabled, small, large, className } = rest;
return (
<ButtonWrapper {...rest}
>
<ButtonContent disabled={disabled} small={small} large={large} wrapperStyles={rippleStyles}>
<ButtonContent {...{ disabled, small, large, className }} wrapperStyles={rippleStyles}>
{children}
</ButtonContent>
</ButtonWrapper>
Expand Down

0 comments on commit 6761f4e

Please sign in to comment.