mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
refactor(theme-classic): remove span wrappers from layout links (#6985)
This commit is contained in:
parent
21ff25eebb
commit
4c0914c035
3 changed files with 8 additions and 14 deletions
|
@ -269,10 +269,8 @@ function DocSidebarItemLink({
|
|||
onClick: onItemClick ? () => onItemClick(item) : undefined,
|
||||
})}
|
||||
{...props}>
|
||||
<span>
|
||||
{label}
|
||||
{!isInternalUrl(href) && <IconExternalLink />}
|
||||
</span>
|
||||
{label}
|
||||
{!isInternalUrl(href) && <IconExternalLink />}
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
|
|
|
@ -29,10 +29,8 @@ export default function FooterLinkItem({item}: Props): JSX.Element {
|
|||
to: toUrl,
|
||||
})}
|
||||
{...props}>
|
||||
<span>
|
||||
{label}
|
||||
{href && !isInternalUrl(href) && <IconExternalLink />}
|
||||
</span>
|
||||
{label}
|
||||
{href && !isInternalUrl(href) && <IconExternalLink />}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -55,12 +55,10 @@ export default function NavbarNavLink({
|
|||
: null),
|
||||
})}
|
||||
{...props}>
|
||||
<span>
|
||||
{label}
|
||||
{isExternalLink && (
|
||||
<IconExternalLink {...(isDropdownLink && {width: 12, height: 12})} />
|
||||
)}
|
||||
</span>
|
||||
{label}
|
||||
{isExternalLink && (
|
||||
<IconExternalLink {...(isDropdownLink && {width: 12, height: 12})} />
|
||||
)}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue