Skip to content

Commit

Permalink
Tooltip doesn't take className well
Browse files Browse the repository at this point in the history
Fix issue #1399

Generated classname concat both custom and own classes without space between em
  • Loading branch information
c3dr0x authored Jun 21, 2017
1 parent 7677c87 commit a8d47b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Tooltip extends PureComponent {

render() {
const {label, className, htmlFor, ...others} = this.props;
const renderedClassName = `${className ? className : ''}${this.buildClassname()}`;
const renderedClassName = `${className ? (' ' + className) : ''}${this.buildClassname()}`;
const tooltipProps = { ...filterProps(others), htmlFor, className: renderedClassName};

return (
Expand Down

0 comments on commit a8d47b0

Please sign in to comment.