I am mapping a data and sends to the component where it passes different colors for the background of the icon. But I want to change the color when I hover on the component that is rendered.
``
<div className="service-card--wrapper">
<div className="service-card">
<div className="service__icon" style={{backgroundColor:`${service.color}`}}>
{service.icon}
</div>
<div className="service__title">{service.title}</div>
<p className="service__para">{service.paragraph}</p>
<button className="service__btn"><FaArrowRight/></button>
</div>
</div>
``
I want to change the color when it hovers on the service-card but the CSS doesn't overwrite the HTML inline-style, is there a way I can do this?