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

Copy code for code snippet #31

Closed
wants to merge 7 commits into from
Closed

Conversation

Antolius
Copy link
Member

@Antolius Antolius commented Dec 4, 2022

Resolves #5

I introduced an action for copying the code snippet. Hovering over snippet reveals a copy button which can also be used to trigger the action. Button helps with discovering the feature, and global action helps with keyboard focused workflows.

Example of using this:

copy-demo.webm

I'll mark this as draft, as it builds upon the selected icon details I introduced in #29, which is currently under review. Any changes to that PR might impact this one too.

Wrap icons in toggle buttons, track the selected one and
update example code snippet accordingly. This also fixes
an issue with incorrect snippet for symbolic only icons
or those without size 24px.
Add missing white-space and convert snippet template
into a multi-line string.
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 for code snippet
1 participant