I changed my css to inline css. while i have to change the button:hover to the inline css, But that is not working. Is there any way to solve this?
<button
style={{
borderRadius: "10px",
backgroundColor: "#004577",
color: "#ffffff",
border: "0px",
width: "auto",
}}
className=" d-flex col-4 justify-content-center p-2"
type="submit">
Update profile
</button>
I tried but this is not working.
3
Answers
You can’t.
You can watch instead with these 2 props if you hovered or left the element:
A similar ticket here
Here’s my solution.
For changing styles on hover, some modifications in Diego Ammann Answer.