Skip to content

fix: theme-aware copy button on code blocks - #493

Merged
ilteoood merged 4 commits into
mainfrom
fix/copy-button-light-theme
Aug 21, 2026
Merged

fix: theme-aware copy button on code blocks#493
ilteoood merged 4 commits into
mainfrom
fix/copy-button-light-theme

Conversation

@ilteoood

@ilteoood ilteoood commented Aug 21, 2026

Copy link
Copy Markdown
Member

Per design feedback, the copy button needs no chrome — just an icon
that tints on hover. Removes the hardcoded dark surface tint from
docs-copy-btn, which also fixes the same light-mode complaint
without needing theme variables.

Closes #492

Replaced hardcoded dark colors on .docs-copy-btn with theme-aware
CSS variables so the button blends with the page in light mode.

Closes #492
Per design feedback, the copy button needs no chrome — just an icon
that tints on hover. Removes the hardcoded dark surface tint, which
also fixes the same light-mode complaint without needing theme vars.

Closes #492
@ilteoood
ilteoood merged commit fbfe618 into main Aug 21, 2026
5 checks passed
@ilteoood
ilteoood deleted the fix/copy-button-light-theme branch August 21, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy button on code blocks has dark styling in light mode

2 participants