Skip to content

bug: force tooltip-open doesn’t work for group states #4011

@serhii-chernenko

Description

@serhii-chernenko

Reproduction URL (Required)

https://play.tailwindcss.com/vv5uCBW3RN

What version of daisyUI are you using?

No response

Which browsers are you seeing the problem on?

All browsers

Describe your issue

I’d like to to force open a tooltip for the ≤summary> tag within the <details> tag. In the real app application summary, a trigger button is stored in another child component. So, I have to use group behavior.
What I want to achieve:
When the parent details component has the attribute open I’d like to force the opened state for tooltip.
But sadly, just group-open:tooltip-open doesn’t work. The tooltip-open works only with as the exact modifier.

Expected but doesn’t work

<details class="group open:group-open dropdown">
  <summary 
    class="tooltip group-open:tooltip-open" 
    data-tip="Tip content"
  >
    Trigger
  </summary>
  <div class="dropdown-content">Dropdown content</div>
</details>

How it’s solved, currently:

<details class="group open:group-open dropdown">
  <summary 
    class="tooltip group-open:before:opacity-100 group-open:after:opacity-100 [--tt-pos:0]" 
    data-tip="Tip content"
  >
    Trigger
  </summary>
  <div class="dropdown-content">Dropdown content</div>
</details>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions