Skip to content

Commit

Permalink
Merge pull request #3205 from relative-ci/tweak-tooltip-hovercard
Browse files Browse the repository at this point in the history
fix(ui): Tooltip/HoverCard - adjust timeouts
  • Loading branch information
vio authored Mar 22, 2023
2 parents 22a504f + d81b308 commit cfba473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/ui/hover-card/hover-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import css from './hover-card.module.css';
export const HoverCard = (props) => {
const { className, anchorClassName, hoverCardClassName, href, as, label, children } = props;

const state = useHovercardState({ gutter: 8, timeout: 700 });
const state = useHovercardState({ gutter: 8, timeout: 800 });
const hovercardProps = useHovercard({ state, portal: true });

// Fallback to span if no href
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/ui/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Tooltip = <T extends React.ElementType = 'span'>(
...restProps
} = props;

const tooltip = useTooltipState({ placement: 'top' });
const tooltip = useTooltipState({ placement: 'top', timeout: 300 });

return (
<>
Expand Down

0 comments on commit cfba473

Please sign in to comment.