Skip to content

🎨 Palette: Add ARIA labels and fix screen reader context for responsive icon-only buttons#74

Open
Bhishaj9 wants to merge 1 commit into
mainfrom
palette-a11y-responsive-icons-3060053313455134780
Open

🎨 Palette: Add ARIA labels and fix screen reader context for responsive icon-only buttons#74
Bhishaj9 wants to merge 1 commit into
mainfrom
palette-a11y-responsive-icons-3060053313455134780

Conversation

@Bhishaj9

@Bhishaj9 Bhishaj9 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

This commit addresses a critical accessibility flaw in responsive interactive elements. Prior to this change, elements like the "Deploy" button and "Back to Home" link hid their text using Tailwind's breakpoint classes (e.g., hidden lg:inline). While visually correct, this effectively transformed them into icon-only elements on small screens. Because they lacked an explicit aria-label, screen readers either could not announce their purpose or, worse, read out the raw ligature text of the Material Symbols (e.g., "rocket launch", "arrow back") without any actionable context.

The fix resolves this by hardcoding appropriate aria-labels on the parent interactive wrappers (<button>, <a>) and explicitly marking the structural Google Material Symbol spans with aria-hidden="true". This guarantees a robust and consistent accessibility tree regardless of the user's viewport size.

The same accessibility enhancements were applied across both dashboard.html and the glassui.html template. Furthermore, the underlying learning about responsive text-hiding techniques has been permanently documented in the .jules/palette.md UX journal.


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

*   Added `aria-label` to buttons and links in `dashboard.html` and `glassui.html` where visual text is hidden on small screens (`hidden lg:inline`, `hidden sm:inline-flex`), preventing screen readers from losing context on mobile viewports.
*   Added `aria-hidden="true"` to structural Material Symbols (`<span>`) inside these elements so screen readers don't erroneously announce raw ligatures.
*   Added explicit `aria-label` attributes to the standalone "Copy JSON" and "Download JSON" buttons.
*   Documented UX accessibility insight in `.jules/palette.md`.
*   Formatted HTML output via `npx prettier`.

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