From a8d47b093b30d1bcf2c7ad00d647f83597fba923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20BOULETKESSLER?= Date: Wed, 21 Jun 2017 18:01:32 +0200 Subject: [PATCH] Tooltip doesn't take className well Fix issue #1399 Generated classname concat both custom and own classes without space between em --- src/components/tooltip/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tooltip/index.js b/src/components/tooltip/index.js index ddf97782a..10ecc3799 100644 --- a/src/components/tooltip/index.js +++ b/src/components/tooltip/index.js @@ -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 (