feat(tooltip): add new tooltip animation

pull/1049/head
Paul Makles 2022-01-14 21:04:29 +00:00
parent a5b1d727d3
commit 6c118fab78
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export default function Tooltip(props: Props) {
const { children, content, ...tippyProps } = props;
return (
<Tippy content={content} {...tippyProps}>
<Tippy content={content} animation="shift-away" {...tippyProps}>
{/*
// @ts-expect-error Type mis-match. */}
<div style={`display: flex;`}>{children}</div>

View File

@ -5,6 +5,7 @@
@import "react-overlapping-panels/dist";
@import "tippy.js/dist/tippy.css";
@import "tippy.js/animations/shift-away.css";
.tippy-box {
color: var(--foreground);