Skip to content

🎨 Palette: [UX improvement] Add ARIA labels to icon-only buttons for accessibility#28

Open
bobdivx wants to merge 1 commit into
devfrom
palette-aria-labels-icon-buttons-16146034537820988553
Open

🎨 Palette: [UX improvement] Add ARIA labels to icon-only buttons for accessibility#28
bobdivx wants to merge 1 commit into
devfrom
palette-aria-labels-icon-buttons-16146034537820988553

Conversation

@bobdivx
Copy link
Copy Markdown
Owner

@bobdivx bobdivx commented May 11, 2026

💡 What: Added aria-label attributes to icon-only buttons in AgentCard.tsx and AgentRepl.tsx.
🎯 Why: To improve accessibility for screen readers. Previously, these buttons only had title attributes which provide a visual tooltip but are sometimes inconsistently read by screen readers. The aria-label explicitly defines the accessible name for these controls.
📸 Before/After: No visual changes, only DOM structure enhancements for assistive tech.
Accessibility: Significant improvement for screen reader users by explicitly naming interactive elements that otherwise lack text content.


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

…accessibility

Added `aria-label` attributes corresponding to their `title` attributes on multiple icon-only `<button>` elements in `AgentCard.tsx` and `AgentRepl.tsx`. This improves accessibility by providing explicit text descriptions for screen readers, allowing users relying on assistive technologies to understand the purpose of these interactive elements.

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
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

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

Project Deployment Actions Updated (UTC)
forge Ready Ready Preview, Comment May 11, 2026 6:04pm

Copy link
Copy Markdown

@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 improves accessibility by adding aria-label attributes to several interactive buttons in AgentCard.tsx and AgentRepl.tsx. The review feedback suggests ensuring that these labels consistently match the descriptive information provided in the title attributes, specifically regarding configuration details and keyboard shortcuts, to provide a uniform experience for screen reader users.

}}
class="rounded-xl border border-gray-200 bg-white p-2 text-gray-400 transition-all hover:border-[#175B37]/30 hover:text-[#175B37]"
title="Configurer cet agent (outils, prompt)"
aria-label="Configurer cet agent"
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 aria-label should match the title attribute to ensure that screen reader users receive the same descriptive information as sighted users. The current label omits the context about what can be configured (tools, prompt).

Suggested change
aria-label="Configurer cet agent"
aria-label="Configurer cet agent (outils, prompt)"

class="shrink-0 p-2 rounded-full border border-transparent transition-colors disabled:opacity-25 hover:bg-white hover:border-gray-200 hover:shadow-sm"
style={{ color: FORGE }}
title="Exécuter (Entrée)"
aria-label="Exécuter"
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 aria-label should include the keyboard shortcut information present in the title attribute. This helps screen reader users discover that the action can be triggered with the Enter key.

Suggested change
aria-label="Exécuter"
aria-label="Exécuter (Entrée)"

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