I'm working on a React.js app with Typescript and I need to remove the default visited Material Icons coloring from an anchor tag. Here's the stylesheet I tried:
const useStyles = makeStyles((theme: Theme) =>
createStyles(
myAnchor: {
"&:visited": {color: "inherit"},
"&:hover": {color: "inherit"},
"&:active": {color: "inherit"}
}
...
)
const classes = useStyles();
However, when I applied it using
<a className={classes.myAnchor}><FacebookIcon /></a>
, it didn't work as expected. Am I doing something wrong with "&:visited"
?