Skip to content

🎨 Palette: [UX improvement] Add focus indicator to ResumeCard download button#446

Closed
aafre wants to merge 1 commit into
mainfrom
palette/fix-resumecard-download-focus-6681330511850818057
Closed

🎨 Palette: [UX improvement] Add focus indicator to ResumeCard download button#446
aafre wants to merge 1 commit into
mainfrom
palette/fix-resumecard-download-focus-6681330511850818057

Conversation

@aafre
Copy link
Copy Markdown
Owner

@aafre aafre commented Apr 5, 2026

💡 What: Added focus-visible styling (focus:outline-none focus-visible:ring-2 focus-visible:ring-accent) to the Download PDF icon button in the ResumeCard component.

🎯 Why: Custom inline icon buttons that only rely on hover states are effectively invisible to users navigating the site via keyboard. This prevents keyboard-only users from easily knowing when they are focused on the download action.

Accessibility: This specific improvement ensures that keyboard users will see a clear, distinct visual focus ring (matching the existing design system accent color) when tabbing to the download button, vastly improving the usability of the primary user dashboard.


PR created automatically by Jules for task 6681330511850818057 started by @aafre

Co-authored-by: aafre <8656674+aafre@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new entry to the project's documentation regarding keyboard focus visibility and implements focus-visible ring styles for the Download PDF button in the ResumeCard component. The feedback suggests extending these accessibility improvements to other interactive elements within the same component, such as the Edit button and thumbnail container, and broadening the documentation guidelines to encompass all interactive elements rather than just icon-only buttons.

onDownload(resume.id);
}}
className="p-2 text-gray-600 hover:bg-gray-100 rounded-lg transition-colors"
className="p-2 text-gray-600 hover:bg-gray-100 rounded-lg transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The focus indicators added here are missing from other interactive elements in the same component, specifically the "Edit Resume" button (line 225) and the thumbnail container (line 118). To ensure a fully accessible and cohesive keyboard navigation experience, consider applying focus:outline-none focus-visible:ring-2 focus-visible:ring-accent to all interactive elements in the card.

Comment thread .Jules/palette.md

## 2025-04-05 - Keyboard Focus Visibility on Icon Buttons
**Learning:** Custom inline icon buttons within mapped card components (like the Download PDF button on `ResumeCard`) often miss explicit keyboard focus indicators if they only use `hover` state classes, making them invisible to keyboard-only users navigating the card actions.
**Action:** Always verify keyboard focus states and explicitly add `focus:outline-none focus-visible:ring-2 focus-visible:ring-accent` (or similar design system focus tokens) to custom icon-only buttons to ensure they remain accessible and highly visible during keyboard navigation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The action item is currently limited to "icon-only buttons". However, the accessibility issue of missing focus indicators applies to all interactive elements that rely on hover states. Broadening this guideline to include all interactive components (such as the thumbnail preview and text buttons in ResumeCard) would ensure a more consistently accessible experience across the application, aligning with the requirement to keep documentation updated with UI changes.

References
  1. Ensure documentation, such as testing plans, is updated to reflect UI and implementation changes made in the same pull request.

@aafre
Copy link
Copy Markdown
Owner Author

aafre commented Apr 11, 2026

Closing: superseded by #420 (covers both Edit + Download buttons). Cherry-picked into #457.

@aafre aafre closed this Apr 11, 2026
@google-labs-jules
Copy link
Copy Markdown
Contributor

Closing: superseded by #420 (covers both Edit + Download buttons). Cherry-picked into #457.

Understood. Acknowledging that this work is now obsolete as it has been superseded by #420 and cherry-picked into #457. Stopping work on this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant