From d9626d7ad55abcb89a668b01b5b25b3ac3759076 Mon Sep 17 00:00:00 2001 From: Gilad Gray Date: Fri, 18 Jan 2019 14:58:43 -0500 Subject: [PATCH] [Tooltip] allow HOVER interactions (#3291) --- packages/core/src/components/tooltip/tooltip.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/core/src/components/tooltip/tooltip.tsx b/packages/core/src/components/tooltip/tooltip.tsx index 2700f8c211..4e1c317a4f 100644 --- a/packages/core/src/components/tooltip/tooltip.tsx +++ b/packages/core/src/components/tooltip/tooltip.tsx @@ -34,6 +34,13 @@ export interface ITooltipProps extends IPopoverSharedProps, IIntentProps { */ hoverOpenDelay?: number; + /** + * The kind of hover interaction that triggers the display of the tooltip. + * Tooltips do not support click interactions. + * @default PopoverInteractionKind.HOVER_TARGET_ONLY + */ + interactionKind?: typeof PopoverInteractionKind.HOVER | typeof PopoverInteractionKind.HOVER_TARGET_ONLY; + /** * Indicates how long (in milliseconds) the tooltip's appear/disappear * transition takes. This is used by React `CSSTransition` to know when a @@ -62,11 +69,11 @@ export class Tooltip extends React.PureComponent { return (