Skip to content

🎨 Palette: Add accessibility attributes to ScenarioBar#112

Open
aarjava wants to merge 4 commits intomainfrom
jules-3306341334996754445-e0a48b9a
Open

🎨 Palette: Add accessibility attributes to ScenarioBar#112
aarjava wants to merge 4 commits intomainfrom
jules-3306341334996754445-e0a48b9a

Conversation

@aarjava
Copy link
Owner

@aarjava aarjava commented Mar 1, 2026

💡 What: Added accessibility attributes (role="group", aria-label, and aria-pressed) to the interactive buttons in ScenarioBar.tsx.
🎯 Why: To ensure that screen reader users can understand the component's group structure and determine which scenario toggle is currently active. Custom interactive element groups without explicit roles fail to provide this necessary context.
Accessibility:

  • Added role="group" and aria-label="Scenario options" to the container.
  • Added aria-pressed={isActive} to each scenario button to indicate toggle state.
  • Added descriptive aria-label to each scenario button based on its state and name.
  • Added aria-label to the reset button.

PR created automatically by Jules for task 3306341334996754445 started by @aarjava

- Add `role="group"` and `aria-label` to scenario buttons container
- Add `aria-pressed` and `aria-label` to individual scenario buttons
- Add `aria-label` to the reset button

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
@google-labs-jules
Copy link

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

vercel bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
fluxlens-ai Ready Ready Preview, Comment Mar 2, 2026 0:02am

- Add `role="group"` and `aria-label` to scenario buttons container
- Add `aria-pressed` and `aria-label` to individual scenario buttons
- Add `aria-label` to the reset button

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
- Add `role="group"` and `aria-label` to scenario buttons container
- Add `aria-pressed` and `aria-label` to individual scenario buttons
- Add `aria-label` to the reset button

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
- Add `role="group"` and `aria-label` to scenario buttons container
- Add `aria-pressed` and `aria-label` to individual scenario buttons
- Add `aria-label` to the reset button

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
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