🎨 Palette: Add Copy Link to docs sections#30
Conversation
- Add copy link buttons to hero and card headers in docs - Implement clipboard logic with visual and a11y feedback - Add localized strings for copy link actions - Style buttons for hover/focus visibility and success states - Improve compatibility for Cloudflare Workers (regex replace, semicolons) Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
✅ Deploy Preview for melodious-queijadas-3cc817 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
💡 What:
Added "Copy link" buttons to all documentation sections (Hero and Cards) on the
docs.htmlpage.🎯 Why:
This micro-UX improvement allows users to quickly grab a deep link to any specific section of the documentation, making it much easier to share or bookmark relevant content.
♿ Accessibility:
aria-labelto the icon-only buttons.aria-labelupdates to "Link copied!" for 1500ms after a successful copy to provide screen reader confirmation.:focus-withinor when the button itself has:focus-visible.✨ Interaction Polish:
hgi-tick-01) and changes color to the accent green upon success.🛠️ Compatibility:
String.prototype.replaceAllwith global regex replacements in modified files to ensure stability in Cloudflare Workers environments.PR created automatically by Jules for task 6478423105394606575 started by @MilakyS