I use TailwindCSS with DaisyUI (via CDN).
When using DaisyUI Dropdown, is there any way for me to change the color of the dropdown item? This includes the background color of the dropdown itself, then hovering on item (CSS :hover), and clicking on it (CSS :active).
So far, I've been able to change the background color of the dropdown itself and when hovering.
<div class="dropdown">
<div tabindex="0" class="m-1 btn clickables btn-green shadow">
<p class="text-medium">Testing</p>
</div>
<ul tabindex="0" class="p-2 shadow menu dropdown-content bg-white text-black rounded-box w-52 text-sm">
<li class="rounded hover:bg-gray-300 dropdown-active">
<a href="page-one.html">Protecting your privacy</a>
</li>
</ul>
</div>
I can't seem to get when the list is clicked color (CSS active) with:
.dropdown-active:active {
background-color: #0B6339 !important;
}