🎨 Palette: Add Copy-to-Clipboard Utility to Code Block#26
🎨 Palette: Add Copy-to-Clipboard Utility to Code Block#26rtech-technologies wants to merge 1 commit into
Conversation
Added a 'Copy' button to the terminal feed in `os2.html` to improve micro-UX.
- Button is revealed on hover/focus using Tailwind's `group` utilities.
- Provides visual feedback ('Copied!' text and theme swap) upon success.
- Includes a robust fallback for environments without `navigator.clipboard`.
- Fully accessible with ARIA labels and focus states.
Co-authored-by: rtech-technologies <254326487+rtech-technologies@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. |
This PR adds a small but high-impact micro-UX improvement to the
os2.htmlpage. A "Copy" button has been added to the assembly code block, allowing users to easily copy technical snippets.💡 What:
.code-windowinos2.html.copyToClipboardfunction with success feedback.group-hoverandfocusclasses to keep the UI clean by default.🎯 Why:
♿ Accessibility:
aria-label="Copy code to clipboard".focus:opacity-100) for keyboard users.📸 Verification:
PR created automatically by Jules for task 7382549690690944635 started by @rtech-technologies