sek-consulting / solid-ui

Beautifully designed components. Built with Kobalte & corvu. Styled with Tailwind CSS.
https://www.solid-ui.com
MIT License
680 stars 25 forks source link

Fix Copy Button behaviour #14

Closed arvalaan closed 9 months ago

arvalaan commented 9 months ago

📝 PR Description

This PR addresses the unexpected behaviour of the CopyButton component, ensuring that content copying occurs only when intended and the button state resets appropriately.

Current Behaviour

Changes Made

🚀 How to Test

  1. Navigate to any page using the CopyButton component.
  2. Ensure that content does not get copied immediately upon loading.
  3. Interact with the CopyButton and verify that the content is copied as expected.
  4. Wait for 2 seconds and ensure the button resets its state.
vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
solid-ui-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 4:49pm
sek-consulting commented 9 months ago

Thank you for that beautiful fix! 😁