Skip to content

DataTable: Accessibility issues. #8289

@KubaGorka

Description

@KubaGorka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions