Skip to content

Commit 455b06e

Browse files
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 <KiritaniAyaka@users.noreply.github.com>
1 parent 8de5b15 commit 455b06e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/utils/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class DefaultRenderer extends Marked.Renderer {
191191
type="button"
192192
data-code="${escapeHtml(text)}"
193193
aria-label="Copy to Clipboard"
194-
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"
194+
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"
195195
>
196196
<span class="group-copied">
197197
<svg

0 commit comments

Comments
 (0)