Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

feat(core): underline Markdown links by default (#3006)

Kenton Quatman444ca718665d
diff --git a/.changeset/markdown-link-underline.md b/.changeset/markdown-link-underline.md
new file mode 100644
index 0000000000..7430c5f7eb
--- /dev/null
+++ b/.changeset/markdown-link-underline.md
@@ -0,0 +1,8 @@
+---
+'@xds/core': patch
+---
+
+[feat] Underline links by default in the Markdown component
+@kentonquatman
+
+Markdown links now render with a persistent underline instead of only underlining on hover, making links clearly distinguishable from surrounding text and improving accessibility. The accent color is unchanged.
diff --git a/packages/core/src/Markdown/Markdown.tsx b/packages/core/src/Markdown/Markdown.tsx
index 3659a0a1f7..9aba990f1b 100644
--- a/packages/core/src/Markdown/Markdown.tsx
+++ b/packages/core/src/Markdown/Markdown.tsx
@@ -399,10 +399,7 @@ const styles = stylex.create({
},
link: {
color: colorVars['--color-text-accent'],
- textDecoration: {
- default: 'none',
- ':hover': {'@media (hover: hover)': 'underline'},
- },
+ textDecoration: 'underline',
},
});