🎨 Palette: Add accessibility attributes to ScenarioBar#112
🎨 Palette: Add accessibility attributes to ScenarioBar#112
Conversation
- 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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 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>
💡 What: Added accessibility attributes (
role="group",aria-label, andaria-pressed) to the interactive buttons inScenarioBar.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:
role="group"andaria-label="Scenario options"to the container.aria-pressed={isActive}to each scenario button to indicate toggle state.aria-labelto each scenario button based on its state and name.aria-labelto the reset button.PR created automatically by Jules for task 3306341334996754445 started by @aarjava