Skip to content

fix(a11y): add aria-label to Data Table filter inputs#10421

Open
xyaz1313 wants to merge 1 commit intoshadcn-ui:mainfrom
xyaz1313:fix/a11y-data-table-filter-inputs
Open

fix(a11y): add aria-label to Data Table filter inputs#10421
xyaz1313 wants to merge 1 commit intoshadcn-ui:mainfrom
xyaz1313:fix/a11y-data-table-filter-inputs

Conversation

@xyaz1313
Copy link
Copy Markdown

Description

Adds missing aria-label attributes to filter inputs in all Data Table example variants (Radix, Base, and Tasks) to fix a WCAG 2.1 SC 4.1.2 violation.

Issue

Fixes #10397

Changes

  1. apps/v4/examples/radix/data-table-demo.tsx — Added aria-label="Filter emails" to the filter input
  2. apps/v4/examples/base/data-table-demo.tsx — Added aria-label="Filter emails" to the filter input
  3. apps/v4/app/(app)/examples/tasks/components/data-table-toolbar.tsx — Added aria-label="Filter tasks" to the filter input

Why this matters

Since developers copy these examples directly into their projects, missing accessible labels propagate to thousands of production applications. Adding aria-label ensures screen reader users understand the purpose of these filter inputs.

Testing

  • Verified all three files have the aria-label attribute added
  • The fix is minimal and non-breaking — only adds an accessibility attribute
  • No functional changes to the component behavior

Adds missing aria-label attributes to filter inputs in all Data Table
example variants (Radix, Base, and Tasks) to fix WCAG 2.1 SC 4.1.2
violation.

Fixes shadcn-ui#10397
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 17, 2026

@xyaz1313 is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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.

[a11y]: Data Table filter inputs missing aria-label across all example variants (WCAG 4.1.2)

1 participant