primefaces / primefaces/primereact
DataTable: Accessibility issues.
Nobody has claimed this yet.
- 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
- Go to https://primereact.org/multiselect/
- Edit any example via stackblitz by adding prop
name - Notice that the it is not set correctly
Expected behavior
Passing name prop should set it on the correct element
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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