-
Hi @saadeghi,
And this is the style of the element in my page:
But the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
First make sure dependencies are updated. For example there was CSS issue similar to this in the early versions of Nextjs 13 where the CSS processor dependencies where ignoring some styles (it's fixed now in later versions of Nextjs 13) Second, make sure the path to all markup files exist in If the issue still exists, I would need an example repo when I can reproduce and see the issue. |
Beta Was this translation helpful? Give feedback.
-
@saadeghi Thanks for your reply, the weird thing is that all the other styles working without any issue and the only broken part is the
I also found this link: https://stackoverflow.com/a/73528462 Do I need to create/ use a custom tailwindcss plugin to support |
Beta Was this translation helpful? Give feedback.
-
@saadeghi Also I realised the working CSS in the previous version was: (old daisyui and tailwindcss)
While the new one is generated something like this: (the broken one after turn to monorepo based on NX and update all the packages)
|
Beta Was this translation helpful? Give feedback.
-
I see. The menu colors changed in daisyUI 3. I guess you upgraded from v2 to v4.
https://play.tailwindcss.com/OoxQqDwZPq?size=1064x720 Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
-
In daisyUI 2 the active item color was In daisyUI 3+ the active item color is Because it's better if primary color is being used for elements that need to be eye catching, like call-to-action buttons. The problem is now that active item color is |
Beta Was this translation helpful? Give feedback.
I see. The menu colors changed in daisyUI 3. I guess you upgraded from v2 to v4.
4.4.3
text-base-content
todropdown-content
because when you havetext-neutral-content
in the navbar all text inside navbar will have that color but looks like you want the dropdown to be a different color. so usetext-base-content
alongsidebg-base-100
menu-compact
which was removed in daisyUI 3 and it doesn't do anything now. You can usemenu-sm
if you want smaller sizehttps://play.tailwindcss.com/OoxQqDwZPq?size=1064x720
Let me know if you have a question.