diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/index.tsx
index f0a422ebf161..eca309416aa5 100644
--- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/index.tsx
+++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/index.tsx
@@ -250,6 +250,7 @@ function DocSidebarItemLink({
}: Props & {item: PropSidebarItemLink}) {
const {href, label, className} = item;
const isActive = isActiveSidebarItem(item, activePath);
+ const isInternalLink = isInternalUrl(href);
return (
onItemClick(item) : undefined,
})}
{...props}>
{label}
- {!isInternalUrl(href) && }
+ {!isInternalLink && }
);
diff --git a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/styles.module.css b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/styles.module.css
index 2bb6934d33ee..e8a2d6c96052 100644
--- a/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/styles.module.css
+++ b/packages/docusaurus-theme-classic/src/theme/DocSidebarItem/styles.module.css
@@ -11,3 +11,7 @@
var(--ifm-menu-link-padding-horizontal);
}
}
+
+.menuExternalLink {
+ align-items: center;
+}
diff --git a/packages/docusaurus-theme-classic/src/theme/IconExternalLink/styles.module.css b/packages/docusaurus-theme-classic/src/theme/IconExternalLink/styles.module.css
index 1e8964ae9a9c..7b0a5ad13d39 100644
--- a/packages/docusaurus-theme-classic/src/theme/IconExternalLink/styles.module.css
+++ b/packages/docusaurus-theme-classic/src/theme/IconExternalLink/styles.module.css
@@ -7,6 +7,4 @@
.iconExternalLink {
margin-left: 0.3rem;
- position: relative;
- top: 1px;
}