I've been trying to get my svg to fill in with black on hover but can't seem to do it.
I want it to have black outline like this
.
And then fill like this
.
This is the code I would expect to work to fill it in on hover. However, it doesn't quite work. If I take the hover: off of hover:fill-current then it just fills in black the whole time.
<svg class="h-6 w-6 text-black hover:fill-current" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
Any ideas?