Skip to content

Commit 6096caa

Browse files
authored
fix blog links (#2119)
* Remove Nextra's global style clearing underline from links in articles * Make mdx link underline more visible
1 parent 5f1cbd2 commit 6096caa

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/_design-system/mdx-components/mdx-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const MdxLink = forwardRef<
1212
{...props}
1313
ref={ref}
1414
className={clsx(
15-
"typography-link text-neu-900 decoration-from-font underline-offset-2",
15+
"typography-link text-neu-900 underline-offset-2",
1616
props.className,
1717
)}
1818
href={props.href || ""}

src/nextra-theme-docs.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,12 +1867,6 @@ article.nextra-body-typesetting-article h1 {
18671867
article.nextra-body-typesetting-article h2 {
18681868
border-style: none;
18691869
}
1870-
article.nextra-body-typesetting-article a {
1871-
text-decoration-line: none;
1872-
}
1873-
article.nextra-body-typesetting-article a:hover {
1874-
text-decoration-line: underline;
1875-
}
18761870
article.nextra-body-typesetting-article p {
18771871
line-height: 2rem;
18781872
}

0 commit comments

Comments
 (0)