Next.js Discord

Discord Forum

Issue while mouse overing on a svg/ react-icons item

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
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:
                        <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

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