From 3629de514dc2efb6e2105a838c9df9fe4c0f53de Mon Sep 17 00:00:00 2001 From: mpruser Date: Sat, 4 Jan 2025 15:20:43 +0900 Subject: [PATCH] fix: ensure code elements within links display correct link styling (#7339) --- apps/site/styles/markdown.css | 4 ++++ apps/site/tailwind.config.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/apps/site/styles/markdown.css b/apps/site/styles/markdown.css index 3984a3ed9c03c..4f60ba4a38a91 100644 --- a/apps/site/styles/markdown.css +++ b/apps/site/styles/markdown.css @@ -93,6 +93,10 @@ main { &:has(code) { @apply max-xs:decoration-neutral-800 dark:max-xs:decoration-neutral-200; + + code { + @apply text-inherit; + } } } diff --git a/apps/site/tailwind.config.ts b/apps/site/tailwind.config.ts index 946e81166d6b8..6138046a3960f 100644 --- a/apps/site/tailwind.config.ts +++ b/apps/site/tailwind.config.ts @@ -99,6 +99,7 @@ export default { white: '#FFFFFF', transparent: 'transparent', shadow: '#101828', + inherit: 'inherit', }, fontSize: { xs: ['0.75rem', '1rem'],