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

change hover background in dropdown menu list #299

Closed
allaghi opened this issue Nov 12, 2021 · 2 comments
Closed

change hover background in dropdown menu list #299

allaghi opened this issue Nov 12, 2021 · 2 comments
Assignees
Labels

Comments

@allaghi
Copy link

allaghi commented Nov 12, 2021

Hello,
I am trying to custom hover in dropdown list from gray to another color but it didn't work my code is
<li><NuxtLink to="/vehicles/inventory" class="hover:text-white hover:bg-black">Inventory</NuxtLink></li>

I am using daisyui with nuxt js.

@saadeghi
Copy link
Owner

@allaghi Currently the only way is to use Tailwind's important prefix ! to override the default hover style:

hover:!text-white hover:!bg-black

Without ! it won't work because of CSS specificity. I will fix this on next update.

@saadeghi saadeghi self-assigned this Nov 12, 2021
@allaghi
Copy link
Author

allaghi commented Nov 12, 2021

I would like to let you know that hover:text-white is working without important prefix , but bg-blue-600 for example it doesn't work.

@saadeghi saadeghi added the menu label Feb 24, 2022
inorganik pushed a commit to inorganik/daisyui that referenced this issue Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants