Skip to content

fix: preserve terminal icon while copying block commands - #114

Open
elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/copy-button-terminal-icon
Open

elviskahoro wants to merge 1 commit into
LineIndent:mainfrom
elviskahoro:fix/copy-button-terminal-icon

Conversation

@elviskahoro

Copy link
Copy Markdown
Contributor

The block-command copy button swapped the entire button's innerText to "Copied!", which wiped out the TerminalIcon SVG until the timeout restored the text.

Wraps the command text in a dedicated span and only swaps that span's text, so the icon stays visible throughout the copy feedback.

This branch has not been deployed

No deployments
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.

1 participant