【发布时间】:2021-10-06 23:15:58
【问题描述】:
我收到了这个 eslint 警告,但我不知道如何解决它。这是我的css
const StyledLabel = styled(P)`
cursor: pointer;
border: 1px solid transparent;
width: 100%;
display: inline-block;
text-align: center;
padding: ${spacing.override(6)};
${({ theme, selected }) =>
selected && `border: 1px solid ${theme.primary.black};`};
&:hover {
border: 1px solid ${theme.primary.black};
}
`;
错误下划线显示在行显示块下方:inline-block
有什么想法吗?
【问题讨论】:
-
什么是waring?
标签: reactjs next.js eslint styled-components