Skip to content

🎨 Palette: Add ARIA accessibility to icon-only buttons#65

Open
Bhishaj9 wants to merge 1 commit into
mainfrom
palette/a11y-icon-buttons-13472471284858068292
Open

🎨 Palette: Add ARIA accessibility to icon-only buttons#65
Bhishaj9 wants to merge 1 commit into
mainfrom
palette/a11y-icon-buttons-13472471284858068292

Conversation

@Bhishaj9

Copy link
Copy Markdown
Owner

This PR implements a micro-UX accessibility enhancement by addressing icon-only buttons across the application's HTML templates (dashboard.html, glassui.html, code.html).

Changes made:

  • Added aria-label to <button> elements that only contain icon spans.
  • Added aria-hidden="true" to <span class="material-symbols-outlined"> elements to prevent screen readers from reading raw ligature text (like "content_copy" or "download").
  • Added a new learning entry to the .jules/palette.md journal detailing this specific accessibility pattern for future reference.

These changes are structurally contained (< 50 lines), use existing styling, and ensure an improved experience for screen reader users without altering any visual layouts.


PR created automatically by Jules for task 13472471284858068292 started by @Bhishaj9

💡 What: Added `aria-label` to icon-only buttons ("Copy JSON" and "Download JSON") and applied `aria-hidden="true"` to structural `span.material-symbols-outlined` icon elements within those buttons. Also logged critical UX learning to `.jules/palette.md`.
🎯 Why: Without these attributes, screen readers may read the raw text of the ligature icon (e.g. "content copy") instead of a descriptive action, and may miss the button completely if it has no accessible label.
📸 Before/After: Visuals are completely unchanged, but accessibility is drastically improved for screen readers.
♿ Accessibility: Ensures that screen readers ignore raw icon ligatures and correctly interpret the function of icon-only buttons via explicit ARIA labels.

Co-authored-by: Bhishaj9 <144550237+Bhishaj9@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.

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