We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74a2b90 commit e26f1c9Copy full SHA for e26f1c9
1 file changed
builder-frontend/src/components/shared/Tooltip.tsx
@@ -73,8 +73,13 @@ export default function QuestionTooltip(props: TooltipProps) {
73
class="relative inline-flex items-center justify-center cursor-help"
74
onMouseEnter={show}
75
onMouseLeave={hide}
76
- onFocus={show}
77
- onBlur={hide}
+ onFocusIn={show}
+ onFocusOut={(e: FocusEvent) => {
78
+ // Only hide if focus is leaving the entire tooltip container
79
+ if (!containerRef?.contains(e.relatedTarget as Node)) {
80
+ hide();
81
+ }
82
+ }}
83
tabIndex={0}
84
aria-label="More information"
85
>
@@ -91,8 +96,6 @@ export default function QuestionTooltip(props: TooltipProps) {
91
96
? "left-0"
92
97
: "right-0"
93
98
}`}
94
- onMouseEnter={show}
95
- onMouseLeave={hide}
99
100
{props.children}
101
{/* Decorative arrow pointing up */}
0 commit comments