Skip to content

🎨 Palette: Add accessibility to AgentCard buttons#103

Open
bobdivx wants to merge 1 commit into
devfrom
jules-10546121150991294942-a09ddf35
Open

🎨 Palette: Add accessibility to AgentCard buttons#103
bobdivx wants to merge 1 commit into
devfrom
jules-10546121150991294942-a09ddf35

Conversation

@bobdivx

@bobdivx bobdivx commented Jun 9, 2026

Copy link
Copy Markdown
Owner

💡 What: Added aria-labels and focus styles to icon buttons in AgentCard.
🎯 Why: Improve accessibility for screen readers and keyboard users.
♿ Accessibility: Added aria-labels, aria-hidden to nested SVGs, and keyboard focus rings.


PR created automatically by Jules for task 10546121150991294942 started by @bobdivx

💡 What: Added aria-labels and focus styles to icon buttons.
🎯 Why: Improve accessibility for screen readers and keyboard users.
♿ Accessibility: Added aria-labels and focus rings.

Co-authored-by: bobdivx <6737167+bobdivx@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 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.

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
forge Ready Ready Preview, Comment Jun 9, 2026 5:24pm

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

Copy link
Copy Markdown

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 enhances the accessibility of icon-only buttons in AgentCard.tsx by adding aria-label attributes, hiding decorative SVGs from screen readers with aria-hidden="true", and implementing keyboard focus styles. These changes are also documented in .Jules/palette.md. The feedback recommends adding focus-visible:ring-offset-2 to the buttons to improve focus ring visibility and contrast, particularly against dark backgrounds.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

onClick={() => onSwarmCommand?.(agent.id, cmd)}
disabled={commandBusy}
class={`rounded-xl border p-2 transition-all disabled:opacity-50 ${cmd === 'start_work' ? 'bg-gray-900 border-gray-900 text-white hover:bg-black' : 'bg-white border-gray-200 text-gray-400 hover:text-rose-500 hover:border-rose-200'}`}
class={`rounded-xl border p-2 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] disabled:opacity-50 ${cmd === 'start_work' ? 'bg-gray-900 border-gray-900 text-white hover:bg-black' : 'bg-white border-gray-200 text-gray-400 hover:text-rose-500 hover:border-rose-200'}`}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The focus ring color focus-visible:ring-[#175B37] (dark green) has very low contrast against the dark gray background (bg-gray-900) of the 'Lancer une mission' button when focused. To ensure the focus indicator is clearly visible for keyboard users and complies with WCAG accessibility guidelines, consider adding focus-visible:ring-offset-2 to create a clear separation between the button and the focus ring.

Suggested change
class={`rounded-xl border p-2 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] disabled:opacity-50 ${cmd === 'start_work' ? 'bg-gray-900 border-gray-900 text-white hover:bg-black' : 'bg-white border-gray-200 text-gray-400 hover:text-rose-500 hover:border-rose-200'}`}
class={`rounded-xl border p-2 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] focus-visible:ring-offset-2 disabled:opacity-50 ${cmd === 'start_work' ? 'bg-gray-900 border-gray-900 text-white hover:bg-black' : 'bg-white border-gray-200 text-gray-400 hover:text-rose-500 hover:border-rose-200'}`}

setConfigOpen(true);
}}
class="rounded-xl border border-gray-200 bg-white p-2 text-gray-400 transition-all hover:border-[#175B37]/30 hover:text-[#175B37]"
class="rounded-xl border border-gray-200 bg-white p-2 text-gray-400 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] hover:border-[#175B37]/30 hover:text-[#175B37]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For consistency and to ensure excellent focus visibility across all interactive elements, consider adding focus-visible:ring-offset-2 to the configuration button as well.

Suggested change
class="rounded-xl border border-gray-200 bg-white p-2 text-gray-400 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] hover:border-[#175B37]/30 hover:text-[#175B37]"
class="rounded-xl border border-gray-200 bg-white p-2 text-gray-400 transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#175B37] focus-visible:ring-offset-2 hover:border-[#175B37]/30 hover:text-[#175B37]"

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