Merge pull request #204 from unix/tooltip

fix(tooltip): fix autowrap errors for elements wrapped by tooltip
This commit is contained in:
witt
2020-05-13 18:56:20 +08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ exports[`Popover should render react-node 1`] = `
</style><style>
.tooltip {
width: max-content;
display: inline-block;
}
</style></div>"
`;
@@ -22,6 +23,7 @@ exports[`Popover should work with different placement 1`] = `
</style><style>
.tooltip {
width: max-content;
display: inline-block;
}
</style></div>"
`;

View File

@@ -110,6 +110,7 @@ const Tooltip: React.FC<React.PropsWithChildren<TooltipProps>> = ({
<style jsx>{`
.tooltip {
width: max-content;
display: inline-block;
}
`}</style>
</div>