Skip to content

Commit a5766b8

Browse files
fix: prevent empty tooltips from showing on focus (#4258) closes: #4254
1 parent 5a94311 commit a5766b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/daisyui/src/components/tooltip.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
&.tooltip-open,
4747
&[data-tip]:not([data-tip=""]):hover,
4848
&:not(:has(.tooltip-content:empty)):has(.tooltip-content):hover,
49-
&:has(:focus-visible) {
49+
&[data-tip]:not([data-tip=""]):has(:focus-visible) {
5050
> .tooltip-content,
5151
&[data-tip]:before,
5252
&:after {

0 commit comments

Comments
 (0)