🎨 Palette: Enhance copy button focus visibility and error feedback - #457
🎨 Palette: Enhance copy button focus visibility and error feedback#457ightevenmckane187 wants to merge 1 commit into
Conversation
Enhance copy command button (#copy-curl) in src/server.ts with explicit high-contrast :focus-visible focus styles, subtle success border and glow indicators when copied, and screen-reader accessible error feedback on clipboard write failures.
|
👋 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 enhances the copy button UX on the Sovereign Cypher-Tube landing page.
💡 What
:focus-visiblefocus outlines for.copy-buttonelements against dark code container backgrounds.border-color: var(--success)andbox-shadow: 0 0 8px var(--success-glow)) for.copy-button.copied.copyText.textContent = 'Error!'and updatearia-labelto"Failed to copy command to clipboard".🎯 Why
Low-contrast focus states hinder keyboard-only navigation. Furthermore, silent clipboard failures provide poor accessibility feedback for screen-reader users.
♿ Accessibility
:focus-visiblering ensures clear visibility during keyboard tabbing.aria-labelupdates communicate copy success and failure to screen readers.PR created automatically by Jules for task 12201474105818714398 started by @ightevenmckane187