Skip to content

"Copy All" button on snippet cards #10

Description

@byteofhoney

Goal: Let users copy a snippet's code straight from the card grid, without opening it.
User story: As a user, I want a copy button on each card so that I can grab code fast without clicking into the snippet.

Tasks

  • Add a small copy button/icon to each .snippet-card
  • Clicking it must not trigger navigation into the snippet detail page (stopPropagation)
  • Reuse the existing copyCode() pattern/feedback style already used on the detail page

Acceptance Criteria

  • Clicking the copy icon on any card copies that snippet's code to clipboard
  • Clicking it does not navigate to the snippet detail page
  • Button gives the same "Copied!" visual feedback as the existing copy button

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions