primefaces / primefaces/primereact

DataTable: Accessibility issues.

Open
#8,289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

The DataTable component fails accessibility requirements (E950, E951 and E8791).
An element with role='table' must have an accessible name. Setting name via props doesn't set it correctly.
DataTable also fails accessibility E951, because the <th> elements do not have name property

Reproducer

No response

System Information
primereact: 10.9.7
Steps to reproduce the behavior
  1. Go to https://primereact.org/multiselect/
  2. Edit any example via stackblitz by adding prop name
  3. Notice that the it is not set correctly
Expected behavior

Passing name prop should set it on the correct element

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the DataTable component and reproduce the issue using the Multiselect examples at primereact.org/multiselect/, adding the name prop in StackBlitz. Trace where the prop is applied and verify that the table has an accessible name, th elements have names, and the reported E950, E951, and E8791 accessibility errors are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.