-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Responsive menu components incorrect class name / not working properly with prefix #578
Comments
It works: https://play.tailwindcss.com/SZeA5fg4jk?size=774x279 |
Hi @saadeghi , thanks for the playground link. I really should have used this when I first reported the issue! It does not seem to work with a prefix: https://play.tailwindcss.com/sgF3ciI8gd?size=942x279 I've updated the Issue title accordingly. Let me know if I can help in any other way. Thanks |
FYI @saadeghi it was actually a colleague of mine @vnphanquang who implemented the prefix feature. We're using it on a big project to incrementally replace an existing library. Should really help with the adoption of Daisy UI. |
I will take a look at this guys |
Thanks @vnphanquang ! 👋 |
Gentlemen please take a look at the PR here. The fix is at this commit Reason is because i was making direct mutation to the import, and since the tailwind plugin might be ran multiple times, the prefix ends up being duplicated for the utilities (into something like @saadeghi There are two other commits in this PR, one is my proposal to add an The last commit is a section in the CONTRIBUTING guideline as a reminder to devs to add Let me know. Thanks all! |
@vnphanquang thanks my friend 👏 |
@saadeghi I was considering the same thing. I think this might be helpful to some advanced use cases like the project @camslice is working on where users want to see the output from daisy without having to read our source code. Problems like the one in this issue can be detected easily from the end user with this log too. Your call really. Let me know. |
Ah one other thing, I'm not sure if the imports of |
I can't think of any other use case for |
Agreed. Let me remove that commit. |
Commit removed, pr good to go now @saadeghi |
Sounds fine to me @saadeghi . Better to avoid potential issues in strict environments. Test scripts sound like a good feature for the future. Thanks for the fix @vnphanquang ! |
Just a quick note here @saadeghi @vnphanquang. When inspecting the CSS output, I am noticing these classes:
As per the original bug report, the You can see it here, just inspect the CSS in the browser dev tools: https://play.tailwindcss.com/Vac3ty7olI?size=774x279 Another example without the responsive prefix: https://play.tailwindcss.com/NVcXW6Ddkw?size=774x279 Does this look like a bug to you? |
@camslice how about |
@saadeghi ah that explains it. It's there for backwards compatibility. Yep |
Fixed in |
The combination of
menu md:menu-horizontal
does not seem to work. Howevermenu md:horizontal
does work.Daisy UI v2.6.4
Tailwind v3.0.23
The text was updated successfully, but these errors were encountered: