Skip to content

Commit cf23dba

Browse files
gabrieljablonskiGabriel Jablonski
authored and
Gabriel Jablonski
committed
feat: hide tooltip when content is empty
1 parent 99d6f65 commit cf23dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Tooltip/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const Tooltip = ({
208208
id={id}
209209
role="tooltip"
210210
className={classNames(styles['tooltip'], styles[variant], className, {
211-
[styles['show']]: !calculatingPosition && (isOpen || show),
211+
[styles['show']]: content && !calculatingPosition && (isOpen || show),
212212
[styles['fixed']]: positionStrategy === 'fixed',
213213
})}
214214
style={{ ...externalStyles, ...inlineStyles }}

0 commit comments

Comments
 (0)