Currently, I am integrating mui icons 5.2.0 into my React application.
Although the icon appears on the page, it remains unchanged in color when I try to hover over it.
Check out the snippet of code that I have implemented:
import EditIcon from '@mui/icons-material/Edit';
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles(theme => ({
customHoverFocus: {
"&:hover, &.Mui-focusVisible": { backgroundColor: "yellow" }
}
}));
<EditIcon className={useStyles.customHoverFocus} />
Could you please guide me on what might be missing here?