Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Conditionally load button theme classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwaelkens committed Mar 7, 2017
1 parent d0469a5 commit fe046df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class Button extends Component {
const classes = classnames(
theme.button,
{
[theme[level]]: true,
[theme[shape]]: true,
[theme[state]]: true,
[theme[ level ]]: theme[ level ],
[theme[ shape ]]: theme[ shape ],
[theme[ state ]]: theme[ state ],
[theme.iconOnly]: !this.props.label && !this.props.children,
},
className
Expand Down

0 comments on commit fe046df

Please sign in to comment.