Skip to content

Commit

Permalink
Merge pull request #204 from unix/tooltip
Browse files Browse the repository at this point in the history
fix(tooltip): fix autowrap errors for elements wrapped by tooltip
  • Loading branch information
unix authored May 13, 2020
2 parents 072460d + f063f7c commit 7ca9b09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exports[`Popover should render react-node 1`] = `
</style><style>
.tooltip {
width: max-content;
display: inline-block;
}
</style></div>"
`;
Expand All @@ -22,6 +23,7 @@ exports[`Popover should work with different placement 1`] = `
</style><style>
.tooltip {
width: max-content;
display: inline-block;
}
</style></div>"
`;
1 change: 1 addition & 0 deletions components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const Tooltip: React.FC<React.PropsWithChildren<TooltipProps>> = ({
<style jsx>{`
.tooltip {
width: max-content;
display: inline-block;
}
`}</style>
</div>
Expand Down

0 comments on commit 7ca9b09

Please sign in to comment.