Skip to content

fix(CodeBlock): update copy states #1018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025

Conversation

nkrambo
Copy link
Contributor

@nkrambo nkrambo commented May 30, 2025

Motivation:

We updated the "clipboard" action on code blocks to be more modern, similar to how GitHub and others handle this interaction.

Modifications:

Updates the JS file that handles this interaction and the accompanied CSS files.

Result:

Use a standard clipboard icon and swap out to a green check on successful copy.

Support light and dark modes.

@shahmishal shahmishal merged commit 1a981a6 into swiftlang:redesign May 31, 2025
3 checks passed
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.

2 participants