Skip to content

Commit 2414ca5

Browse files
fix: tooltip showing when data-tip or tooltip-content is empty. closes: #3819
Co-authored-by: Suliman Benhalim <benhalim@unhcr.org>
1 parent 5b26c0e commit 2414ca5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/daisyui/src/components/tooltip.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474

7575
.tooltip {
7676
&.tooltip-open,
77-
&[data-tip]:hover,
78-
&:hover,
77+
&[data-tip]:not([data-tip=""]):hover,
78+
&:not(:has(.tooltip-content:empty)):has(.tooltip-content):hover,
7979
&:has(:focus-visible) {
8080
> .tooltip-content,
8181
&[data-tip]:before,

0 commit comments

Comments
 (0)