components
components copied to clipboard
bug(TABLE): cell with mat-cell directive is missing role="cell" attribute
trafficstars
Is this a regression?
- [X] 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:
- 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:
- 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