Skip to content
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

feat: add feedback on copy #652

Merged
merged 8 commits into from
Nov 8, 2024

Conversation

mbhrznr
Copy link
Contributor

@mbhrznr mbhrznr commented Oct 30, 2024

fixes jsr-io/jsr#730.

there hasn't been much of any feedback for the user that copying the code examples was successful.
this pr adds some immediate feedback in the form of a check icon, as seen in jsr's CopyButton.tsx.

additionally write_button created and appended an empty code block, which is now removed.

@CLAassistant
Copy link

CLAassistant commented Oct 30, 2024

CLA assistant check
All committers have signed the CLA.

@mbhrznr mbhrznr requested a review from crowlKats October 31, 2024 07:01
mbhrznr and others added 5 commits November 3, 2024 22:08
# Conflicts:
#	src/html/comrak_adapters.rs
#	src/html/jsdoc.rs
#	src/html/mod.rs
#	src/html/templates/styles.gen.css
#	tests/snapshots/html_test__html_doc_files-3.snap
#	tests/snapshots/html_test__html_doc_files-5.snap
#	tests/snapshots/html_test__html_doc_files-7.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-10.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-12.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-14.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-15.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-16.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-17.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-3.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-5.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-6.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-7.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-8.snap
#	tests/snapshots/html_test__html_doc_files_rewrite-9.snap
#	tests/snapshots/html_test__symbol_group.snap
Copy link
Member

@crowlKats crowlKats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@crowlKats crowlKats merged commit ea552e0 into denoland:main Nov 8, 2024
4 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.

ux: no reaction when you clicked the copy icon.
3 participants