Skip to content

Commit

Permalink
put title in tooltip-content div
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Dec 4, 2017
1 parent 7bdc0e9 commit bd0e937
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ export class Tooltip extends React.PureComponent {
let tooltipTitle;
if (title) {
tooltipTitle = (
<div className="tooltip-content tooltip-title">{title}</div>
<div>{title}</div>
);
}

return (
<div className={newClasses} {...others}>
{tooltipTitle}
<div className="tooltip-content">{children}</div>
<div className="tooltip-content">
{tooltipTitle}
{children}
</div>
</div>
);
}
Expand Down

0 comments on commit bd0e937

Please sign in to comment.