Update username onboarding tooltip styles

This commit is contained in:
trevor-signal 2024-02-12 11:22:38 -05:00 committed by GitHub
parent cf9a376df8
commit d1e38d2796
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 109 additions and 31 deletions

View file

@ -90,6 +90,7 @@ export type PropsType = {
theme?: Theme;
wrapperClassName?: string;
delay?: number;
hideArrow?: boolean;
};
let GLOBAL_EXIT_TIMER: NodeJS.Timeout | undefined;
@ -105,6 +106,7 @@ export function Tooltip({
popperModifiers = [],
wrapperClassName,
delay,
hideArrow,
}: PropsType): JSX.Element {
const timeoutRef = useRef<NodeJS.Timeout | undefined>();
const [active, setActive] = React.useState(false);
@ -184,11 +186,13 @@ export function Tooltip({
data-placement={placement}
>
{content}
<div
className="module-tooltip-arrow"
ref={arrowProps.ref}
style={arrowProps.style}
/>
{!hideArrow ? (
<div
className="module-tooltip-arrow"
ref={arrowProps.ref}
style={arrowProps.style}
/>
) : null}
</div>
)
}