Skip to content

active style for menu items not working in nx monorepo setup #2556

Closed Answered by saadeghi
mnlbox asked this question in Q&A
Discussion options

You must be logged in to vote

I see. The menu colors changed in daisyUI 3. I guess you upgraded from v2 to v4.

  1. Please upgrade to the latest version 4.4.3
  2. Add text-base-content to dropdown-content because when you have text-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 use text-base-content alongside bg-base-100
  3. Remove menu-compact which was removed in daisyUI 3 and it doesn't do anything now. You can use menu-sm if you want smaller size

https://play.tailwindcss.com/OoxQqDwZPq?size=1064x720

Let me know if you have a question.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants