Skip to content

[a11y] fix(a11y): associate filter labels to select controls in AIActivityPanel#52

Draft
github-actions[bot] wants to merge 1 commit intomainfrom
a11y/associate-filter-labels-to-selects-824c9330543a1f74
Draft

[a11y] fix(a11y): associate filter labels to select controls in AIActivityPanel#52
github-actions[bot] wants to merge 1 commit intomainfrom
a11y/associate-filter-labels-to-selects-824c9330543a1f74

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 2, 2026

Issue

WCAG 2.2 SC 4.1.2 – Name, Role, Value (Level A)

In src/components/AIActivityPanel/index.tsx, the filters panel contains three (label)/(select) pairs for Operation, Model, and Sort by. None of the (label) elements had a htmlFor attribute and none of the (select) elements had an id, so the labels were not programmatically associated with their controls.

Without this association, screen readers (NVDA, VoiceOver, JAWS) announce the dropdowns without any label — users hear only "combobox" with no context about what the control does.

Fix

Added matching htmlFor/id pairs to all three filter groups:

Label text htmlFor / id added
Operation ai-activity-operation-filter
Model ai-activity-model-filter
Sort by ai-activity-sort-filter

No logic changes — purely additive HTML attribute additions.

Verification

  • npx tsc --noEmit — ✅ clean (exit 0)
  • npm run lint — ✅ no errors (pre-existing warnings only, unrelated to this change)

Generated by Daily Accessibility Fixer

To install this workflow, run gh aw add githubnext/agentics/workflows/daily-accessibility-review.md@828ac109efb43990f59475cbfce90ede5546586c. View source at https://github.com/githubnext/agentics/tree/828ac109efb43990f59475cbfce90ede5546586c/workflows/daily-accessibility-review.md.

Add htmlFor/id pairs to three <label>/<select> pairs in the
AIActivityPanel filters panel. Without this association, screen
readers cannot announce the label text when users focus the
dropdowns.

WCAG 2.2 SC 4.1.2 (Name, Role, Value) — Level A

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Author

github-actions bot commented Mar 2, 2026

Pull request created: #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants