Change active background color for navbar #2550
Unanswered
ChristopherCalderon
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Can you show your HTML? |
Beta Was this translation helpful? Give feedback.
1 reply
-
class="menu menu-horizontal px-1 [&_li>details>summary:active]:bg-red-500" here is the code with the tailwind JIT syntax, to use the default theme and dont write a new one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default the navbar li elements get this background color when you click them, Ive tried a lot to change it but I cant find the property to do it
I can easily change the hover bg color with just ¨hover:bg-Red¨ for example, but I cant change it for the active state
Beta Was this translation helpful? Give feedback.
All reactions