【发布时间】:2021-06-07 19:14:26
【问题描述】:
当我将 React-Router 链接添加到 Typography 元素时,我似乎无法摆脱下划线,即使选择了 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>
【问题讨论】:
标签: reactjs react-router material-ui