Is there a way to change the color of a material icon inside an IconButton
material component when hovering over the IconButton
? I've tried adding a class directly to the icon, but it only works when hovering over the icon itself and not the IconButton
.
Here's my code snippet:
<IconButton className="add-icon-btn" onClick={toggleNominationForm}>
{!showForm ? <AddBoxIcon /> : <IndeterminateCheckBoxIcon /> }
</IconButton>