From 455b06e775114865dd0a4c1ccd60d49efec5b00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=B6?= Date: Fri, 14 Nov 2025 20:50:08 +0800 Subject: [PATCH] feat(docs): improve copy button appearance on light mode (#3620) | Before| After | | :---: | :---: | | ![before](https://github.com/user-attachments/assets/6d485c89-79ec-485d-9897-de9db0a9b044) | ![after](https://github.com/user-attachments/assets/5c134ea1-6dec-4da5-8a84-e7e7b7e062a7) | The appearance on dark mode doesn't change. Co-authored-by: Ayaka --- www/utils/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/utils/markdown.ts b/www/utils/markdown.ts index 7f0074fe..538ed268 100644 --- a/www/utils/markdown.ts +++ b/www/utils/markdown.ts @@ -191,7 +191,7 @@ class DefaultRenderer extends Marked.Renderer { type="button" data-code="${escapeHtml(text)}" aria-label="Copy to Clipboard" - class="rounded-sm flex items-center justify-center border border-foreground-secondary/30 hover:bg-foreground-secondary/70 data-copied:text-green-300 relative group cursor-pointer w-7 h-7 text-white" + class="rounded-sm flex items-center justify-center border border-foreground-secondary/30 hover:bg-foreground-secondary/20 dark:hover:bg-foreground-secondary/70 data-copied:text-green-700 dark:data-copied:text-green-300 relative group cursor-pointer w-7 h-7 dark:text-white" >