Skip to content

Commit

Permalink
feat: Add Tooltip support css-in-js
Browse files Browse the repository at this point in the history
  • Loading branch information
myxvisual committed Aug 8, 2017
1 parent 44a33fb commit 99dbadf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export class Tooltip extends React.Component<TooltipProps, TooltipState> {
contentNode,
closeDelay,
background,
className,
...attributes
} = this.props;
const { theme } = this.context;
Expand All @@ -199,8 +200,12 @@ export class Tooltip extends React.Component<TooltipProps, TooltipState> {
<span
{...attributes}
ref={tooltipElm => this.tooltipElm = tooltipElm}
style={this.getTooltipStyle()}
>
{...theme.prepareStyle({
className: "tooltip",
style: this.getTooltipStyle(),
extendsClassName: className
})}
>
{content || contentNode}
</span>
{children}
Expand Down

0 comments on commit 99dbadf

Please sign in to comment.