🎨 Palette: Add "Copy Link" to documentation sections#41
Conversation
- add copy.link and copy.link_copied to site.json - inject copy link buttons in docs-page.js using makeCopyLink helper - implement clipboard logic and ui feedback in docs.js - add theme-aware styles for copy link buttons in docs.css 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:
Implemented a "Copy Link" feature for all documentation sections (hero, tabbed, and plain cards).
🎯 Why:
This micro-UX improvement allows users to quickly grab and share deep links to specific documentation sections, improving navigation and collaboration for the MKS language community.
♿ Accessibility:
copy.linkandcopy.link_copiedstrings for English and Russian.aria-labeland icon for 1500ms after a successful copy to provide clear feedback for screen readers and visual users.:focus-visibleindicators.🛠️ Implementation Details:
makeCopyLinkhelper inassets/js/docs-page.jsto standardize button creation.assets/js/docs.jsfor better performance and compatibility with dynamic content.color-mix()and existing CSS design tokens (--accent,--border,--panel-2) to ensure the UI looks great in both dark and potential light themes.PR created automatically by Jules for task 12663088013699912202 started by @MilakyS