🎨 Palette: implement inline copy feedback - #49
Conversation
- Add `copyFeedback` utility in `js/utils.js` for consistent clipboard confirmation. - Integrate feedback into chat messages, code blocks, and canvas copy buttons. - Enhance accessibility with dynamic ARIA labels and `aria-live` announcements. - Add `.copy-success` style using project design tokens. Co-authored-by: anaxifty <[email protected]>
Deploying neuraldock with
|
| Latest commit: |
7bc33b9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0481e269.neural-dock.pages.dev |
| Branch Preview URL: | https://palette-copy-feedback-ux-162.neural-dock.pages.dev |
|
👋 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. |
This PR adds a delightful micro-UX improvement that provides immediate inline feedback when users copy content.
💡 What: A new
copyFeedbackutility that temporarily changes button text to "Copied!" while preserving existing icons and synchronizing ARIA labels.🎯 Why: Toast notifications are helpful but can be missed if they appear far from the user's focus. Inline feedback provides instant interaction confirmation right where the user clicked.
♿ Accessibility:
aria-labelto "Copied!" during the feedback period.aria-live="polite"to ensure screen readers announce the status change.aria-hidden="true"to decorative SVGs.aria-labelto the previously unlabeled artifact copy button.Implementation details:
thiscontext in refactored event listeners.--okdesign token for success styling.PR created automatically by Jules for task 16275729229165574006 started by @anaxifty