Issue while mouse overing on a svg/ react-icons item
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
Hello, guys I have a small issue facing me, how can i change the color of a react-icons item while mouse over in nextjs especially next does not allow me to change any color of even svg or third party icon
here is the code:
need help guys just to change the color of the item while mouse over on it
here is the code:
<div
className="cursor-pointer my-auto px-2"
>
<p>
<LuShoppingCart
className='w-6 h-6'
style={{color: "white"}}
/>
</p>
</div>need help guys just to change the color of the item while mouse over on it
13 Replies
hover:fill-black
put it in className
Barbary LionOP
already treid
tried
@Masai Lion hover:fill-black
Barbary LionOP
it doesnt work
@Barbary Lion it doesnt work
Masai Lion
ok sorry maybe look at the doc of react-icons
Barbary LionOP
does it support next.js
saw this on internet
maybe that how you change it
The full list of currently supported properties:
color
size (default 1em)
className
style (will overwrite size and color)
attr
title
color
size (default 1em)
className
style (will overwrite size and color)
attr
title