I am pretty much new to React and cannot solve this issue. Basically, I want to change only the color of the "FontAwesomIcon" tag while hovering the button but not the color of the text inside the "span" tag. I am using react-bootstrap as well. Here is my code,
<div class="tab">
<Link to="/dataset-upload">
<button class="tablinks" onClick={this.handleClick}>
<FontAwesomeIcon icon={faCloudUploadAlt} size="lg"/>
<span>Dataset Upload</span>
</button>
</Link>
</div>
here is the CSS for FontAwesomeIcon,
.tab button FontAwesomeIcon:hover{
color: #86BC25;
}
If I replace FontAwesomeIcon with span in the CSS it works.
I would appreciate any suggestion or piece of advice.