🎨 Palette: [UX improvement] Add "Copy link to section" to documentation#23
🎨 Palette: [UX improvement] Add "Copy link to section" to documentation#23MilakyS wants to merge 1 commit into
Conversation
- Implemented a "Copy link" button for all documentation section headers. - Added visual feedback (icon swap to checkmark, color change to green) on success. - Ensures accessibility with ARIA labels and focus-reveal triggers. - Added localization for English and Russian. 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. |
🎨 Palette: Add "Copy link to section" to documentation headers
💡 What:
Added an interactive "Copy link to section" button to documentation cards on
docs.html. The button appears when a card is hovered or focused, allowing users to copy the direct URL hash to their clipboard.🎯 Why:
Documentation sections are often long, and users frequently need to share specific parts of the reference. Previously, there was no easy way to get a direct link to a specific
<h2>section. This enhancement makes sharing and bookmarking specific documentation sections effortless.♿ Accessibility:
aria-labelandtitleto the icon button.:focus-withinon the parent card to ensure the button is visible and accessible to keyboard users when they tab through the page.var(--accent)) to provide clear confirmation of the copy action.🛠️ Implementation Details:
docs.cssfor the.docs-copy-linkbutton.docs-page.jsto inject the button markup during section generation.docs.jsusingnavigator.clipboardwith a 1500ms feedback loop.docs.copy_linkkeys tosite.jsonfor technical parity.PR created automatically by Jules for task 3980513492076432300 started by @MilakyS