Material-ui Typography with router link always underlined

Viewed 6098

I can't seem to get rid of the underline when I add a React-Router link to a Typography element, even if underline="none" or "hover" is selected.

from useStyles:

title: {
    display: "none",
    [theme.breakpoints.up("sm")]: {
      display: "block",
    },
  },

from render (the Typography element is in a Toolbar, not sure if that makes a difference):

          <Typography
            className={classes.title}
            variant="h6"
            noWrap
            component={Link}
            to="/"
            color="textPrimary"
            underline="none"
          >
            Your Text Here
          </Typography>

in browser: enter image description here

2 Answers

You need to specify the following in your Links CSS:

textDecoration: "none",
boxShadow: "none"
Related