Skip to content

bug(TABLE): cell with mat-cell directive is missing role="cell" attribute #29784

Closed
@miszol1

Description

@miszol1

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

16.2.14

Description

When using mat-table and mat-cell it used to have role="cell" for each cell in the table. Now there is not role attribute in cell elements.

Reproduction

Reproduction link: https://v17.material.angular.io/components/table/examples
You can check examples in 'Examples' tab on official docs website.
Steps to reproduce:

  1. Inspect any cell in table and you will find that there is no role="cell" attribute.

Previous version with expected behavior: https://v16.material.angular.io/components/table/examples
Steps to reproduce:

  1. Inspect any cell in table and you will find that there is role="cell" attribute.

Expected Behavior

Cell has role="cell" attribute.

Actual Behavior

Cell does not have role="cell" attribute.

Environment

  • Angular: 17.3.12
  • CDK/Material: 17.3.10
  • Browser(s): Google Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/table

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions