Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Component states are not working with Modifier #3652

Closed
PruthviPraj00 opened this issue Mar 12, 2025 · 5 comments
Closed

bug: Component states are not working with Modifier #3652

PruthviPraj00 opened this issue Mar 12, 2025 · 5 comments
Assignees

Comments

@PruthviPraj00
Copy link
Contributor

PruthviPraj00 commented Mar 12, 2025

Reproduction URL (Required)

https://play.tailwindcss.com/wWndQ9FxeZ
https://play.tailwindcss.com/L2yalFmJcY

What version of daisyUI are you using?

V5.0.2

Which browsers are you seeing the problem on?

All browsers

Describe your issue

Hii @pouya 🌼,

I’m encountering an issue with DaisyUI V5. Component states like btn-active and menu-active no longer work with the Tailwind modifiers. This functionality worked fine in V4, but it seems broken in the current version.

To reproduce the issue, try the following code in the DaisyUI playground. Test it in both V5 and V4 to compare:

<div class="join">
  <button class="join-item btn">1</button>
  <button class="join-item btn aria-[current='page']:btn-active" aria-current="page">2</button>
  <button class="join-item btn">3</button>
  <button class="join-item btn">4</button>
</div>

Image
Image


I think the issue is from tailwindcss

https://play.tailwindcss.com/V9PpCvsjHl

Image

Copy link

Thank you @PruthviPraj00 for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@saadeghi saadeghi self-assigned this Mar 12, 2025
@PruthviPraj00
Copy link
Contributor Author

PruthviPraj00 commented Mar 12, 2025

Hello @saadeghi,

I raised this issue in tailwindcss, and they responded, you can take a look, hope this helps

tailwindlabs/tailwindcss#17145

@saadeghi
Copy link
Owner

Will be fixed soon in the next patch version.
Thanks 🙏

@PruthviPraj00
Copy link
Contributor Author

Hello @saadeghi,

Did you find any solution or any workaround for this?

@b4-io
Copy link

b4-io commented Mar 17, 2025

The bug doesn't happen only with btn-active. menu-active and tab-active are also affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants