Skip to content

🎨 Palette: Add aria-expanded to collapsible buttons#192

Merged
madara88645 merged 1 commit intomainfrom
palette-aria-expanded-collapsible-buttons-9634158429627417377
Mar 18, 2026
Merged

🎨 Palette: Add aria-expanded to collapsible buttons#192
madara88645 merged 1 commit intomainfrom
palette-aria-expanded-collapsible-buttons-9634158429627417377

Conversation

@madara88645
Copy link
Owner

💡 What

Added the aria-expanded attribute to collapsible/accordion toggle buttons in BenchmarkResults.tsx, agent-generator/components/ExportPanel.tsx, and skills-generator/components/ExportPanel.tsx.

🎯 Why

When toggle buttons control the visibility of a section (like the Compiled Prompt or Export panels), screen readers need to know whether that section is currently visible or hidden. Without the aria-expanded attribute, screen reader users interact with a button that doesn't explicitly state what state it is controlling.

📸 Before/After

(No visual changes, purely accessibility-focused attributes added)

♿ Accessibility

This enhancement allows screen readers (like NVDA, VoiceOver, JAWS) to correctly announce the state (expanded or collapsed) of these dynamic sections to the user, making navigation and interaction much more predictable.


PR created automatically by Jules for task 9634158429627417377 started by @madara88645

Added the `aria-expanded` attribute to three different accordion/disclosure
toggle buttons across the Next.js frontend application (in `BenchmarkResults`
and `ExportPanel` components) to improve accessibility by communicating the
expanded/collapsed state of the panels to screen readers.
@google-labs-jules
Copy link
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.

Copilot AI review requested due to automatic review settings March 17, 2026 21:43
@vercel
Copy link

vercel bot commented Mar 17, 2026

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

Project Deployment Actions Updated (UTC)
compiler Ready Ready Preview, Comment Mar 17, 2026 9:44pm

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves accessibility for collapsible UI sections in the web app by exposing expanded/collapsed state to assistive technologies.

Changes:

  • Add aria-expanded to the Skills Generator export panel toggle button.
  • Add aria-expanded to the Benchmark Results “Compiled Prompt” collapsible toggle button.
  • Add aria-expanded to the Agent Generator export panel toggle button.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
web/app/skills-generator/components/ExportPanel.tsx Adds aria-expanded to the export section toggle for better screen reader state reporting.
web/app/components/BenchmarkResults.tsx Adds aria-expanded to the compiled prompt disclosure toggle.
web/app/agent-generator/components/ExportPanel.tsx Adds aria-expanded to the export section toggle for better accessibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@madara88645 madara88645 merged commit e429001 into main Mar 18, 2026
21 checks passed
@madara88645 madara88645 deleted the palette-aria-expanded-collapsible-buttons-9634158429627417377 branch March 18, 2026 20:32
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.

2 participants