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

Add a JS copy text utility. #54

Open
cycomachead opened this issue Aug 29, 2024 · 0 comments
Open

Add a JS copy text utility. #54

cycomachead opened this issue Aug 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cycomachead
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We should be able to make it easy for people to copy relevant (non-code) text.

Describe the solution you'd like
Add a class .js-copy-text or something to any HTML element. Floating next to the text a little copy icon should appear which grabs the textContent of the HTML element.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
The action should be keyboard accessible.

@cycomachead cycomachead added the enhancement New feature or request label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant