From b8ff985139f7e3f1ad8540c3916070eef75ebb02 Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Sat, 6 Sep 2025 22:50:03 +0200 Subject: [PATCH 1/2] Remove Nextra's global style clearing underline from links in articles --- src/nextra-theme-docs.css | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/nextra-theme-docs.css b/src/nextra-theme-docs.css index 40b2f0449f..8e94f3ee08 100644 --- a/src/nextra-theme-docs.css +++ b/src/nextra-theme-docs.css @@ -1867,12 +1867,6 @@ article.nextra-body-typesetting-article h1 { article.nextra-body-typesetting-article h2 { border-style: none; } -article.nextra-body-typesetting-article a { - text-decoration-line: none; -} -article.nextra-body-typesetting-article a:hover { - text-decoration-line: underline; -} article.nextra-body-typesetting-article p { line-height: 2rem; } From 88d0598b99776f847ec3f9218c22405bd5f8cf8b Mon Sep 17 00:00:00 2001 From: Piotr Monwid-Olechnowicz Date: Sat, 6 Sep 2025 22:50:23 +0200 Subject: [PATCH 2/2] Make mdx link underline more visible --- src/_design-system/mdx-components/mdx-link.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_design-system/mdx-components/mdx-link.tsx b/src/_design-system/mdx-components/mdx-link.tsx index cf18dafdfc..964469aa09 100644 --- a/src/_design-system/mdx-components/mdx-link.tsx +++ b/src/_design-system/mdx-components/mdx-link.tsx @@ -12,7 +12,7 @@ export const MdxLink = forwardRef< {...props} ref={ref} className={clsx( - "typography-link text-neu-900 decoration-from-font underline-offset-2", + "typography-link text-neu-900 underline-offset-2", props.className, )} href={props.href || ""}