当我在Typography元素中添加React-Router链接时,即使选择了underline="none"
或"hover"
,似乎也无法去除下划线。
来自useStyles:
title: {
display: "none",
[theme.breakpoints.up("sm")]: {
display: "block",
},
},
从渲染(Typography元素位于工具栏中,不确定是否有所不同):
<Typography
className={classes.title}
variant="h6"
noWrap
component={Link}
to="/"
color="textPrimary"
underline="none"
>
Your Text Here
</Typography>
在浏览器中:
![输入图像描述](https://istack.dev59.com/Pjj6o.webp)