Skip to content

🎨 Palette: Add interactive semantics and focus states to filter chips - #324

Merged
ManupaKDU merged 1 commit into
mainfrom
palette-filter-pills-a11y-17750165589429336531
Sep 5, 2026
Merged

ManupaKDU merged 1 commit into
mainfrom
palette-filter-pills-a11y-17750165589429336531

Conversation

@manupawickramasinghe

Copy link
Copy Markdown
Member
  • 💡 What: Replaced GestureDetector with an InkWell wrapped in explicit Semantics for category filter pills in ExploreView.
  • 🎯 Why: To improve keyboard navigation and screen reader accessibility by providing focus states and proper button traits.
  • 📸 Before/After: Visual focus states are now present on hover/keyboard focus.
  • ♿ Accessibility: Added Semantics(button: true, enabled: true), focusColor, and hoverColor to make interactive elements accessible to keyboard and screen reader users.

PR created automatically by Jules for task 17750165589429336531 started by @manupawickramasinghe

Replaced the `GestureDetector` on filter pills in `ExploreView` with a `Semantics` wrapper and `InkWell`. This ensures explicit button traits and focus/hover colors are correctly applied to the interactive elements for better accessibility and screen reader support.

Co-authored-by: manupawickramasinghe <73810867+manupawickramasinghe@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.

Copilot AI lite review requested due to automatic review settings September 2, 2026 08:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new semantics wrapper should also expose the selected state (and avoid hard-coding enabled) so assistive tech can accurately announce which filter is active.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Improves accessibility and input affordances for the ExploreView category filter pills by switching from a raw gesture handler to Material-driven interactions with explicit semantics, plus documenting the pattern for future UI work.

Changes:

  • Replaced GestureDetector with Material + InkWell for filter pills to enable proper hover/focus interaction states.
  • Added an explicit Semantics wrapper to better expose button traits to assistive technologies.
  • Updated the Palette playbook with guidance for semantics and focus/hover colors on custom filter chips.
File summaries
File Description
lib/views/explore/explore_view.dart Makes filter pills keyboard/mouse accessible via InkWell focus/hover states and adds semantic button traits.
.jules/palette.md Documents the new accessibility pattern for custom filter pills.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +196 to +199
child: Semantics(
button: true,
enabled: true,
child: Material(
@ManupaKDU
ManupaKDU merged commit bfa73d9 into main Sep 5, 2026
1 check passed
@ManupaKDU
ManupaKDU deleted the palette-filter-pills-a11y-17750165589429336531 branch September 5, 2026 08:23
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.

3 participants