Rename CSS class to make use more clear

This commit is contained in:
Marcus Blättermann 2023-01-24 07:29:40 +01:00
parent f9e020dd67
commit cddb42211c
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ export default function Link({
const withIcon = !hidden && !hideIcon && !!icon && !isImage(children) const withIcon = !hidden && !hideIcon && !!icon && !isImage(children)
const sourceWithText = withIcon && isString(children) const sourceWithText = withIcon && isString(children)
const linkClassNames = classNames(classes.root, className, { const linkClassNames = classNames(classes.root, className, {
[classes.hidden]: hidden, [classes.noLinkLayout]: hidden,
[classes.nowrap]: (withIcon && !sourceWithText) || icon === 'network', [classes.nowrap]: (withIcon && !sourceWithText) || icon === 'network',
[classes['with-icon']]: withIcon, [classes['with-icon']]: withIcon,
}) })

View File

@ -7,7 +7,7 @@
&:hover &:hover
color: var(--color-theme-dark) color: var(--color-theme-dark)
.hidden .no-link-layout
border: none border: none
color: inherit color: inherit