Skip to content

Commit

Permalink
Merge pull request #93 from wpmudev/fix/button-icon-undefined-class
Browse files Browse the repository at this point in the history
πŸ› fix/react-button-icon: Prevent `undefined` class from being added.
  • Loading branch information
iamleigh authored Apr 22, 2021
2 parents 5c73206 + c46659e commit 4f664b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-button-icon/lib/react-button-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const ButtonIcon = ({
</React.Fragment>
);

className = '' !== className
? 'sui-button-icon ' + className
: 'sui-button-icon';
className = `sui-button-icon ${className || ''}`;

// Set button color.
switch (color) {
Expand Down

0 comments on commit 4f664b0

Please sign in to comment.