🎨 Palette: Implement 'Copy Section Link' in Documentation#38
Conversation
- Injected 'Copy Link' buttons into documentation hero and section headers in assets/js/docs-page.js. - Implemented clipboard logic and visual feedback in assets/js/docs.js. - Added localized strings for 'Copy link' and 'Copied!' in assets/data/site.json (EN/RU). - Added styling in assets/css/docs.css using existing design tokens, ensuring buttons reveal on hover or focus. - Optimized implementation for environment compatibility (regex-based escaping for Cloudflare Workers). 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 the Documentation Hero and each section header.
🎯 Why: Allows users to easily share deep links to specific sections of the documentation, improving the collaborative and reference experience.
♿ Accessibility:
:focus-withinand:focus-visible).aria-labeland dynamic status updates.<button>elements witharia-hiddenicons.📸 Visuals: Buttons reveal elegantly on card hover or focus, providing a tick-mark confirmation and "Copied!" label change upon success.
🛠️ Technical Note: Implementation uses regex-based escaping and ES5-compatible patterns in shared assets to ensure stability in Cloudflare Workers (Workers Assets) environments.
PR created automatically by Jules for task 8888277018393512032 started by @MilakyS