Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in angular 12.2.5 documentation : https://github.com/angular/components/blob/12.2.5/src/material/table/table.md
you say that :
Table's default role is grid, and it can be changed to treegrid through role attribute.
But if we see the source code : https://github.com/angular/components/blob/12.2.5/src/cdk/table/table.ts
if (!role) { this._elementRef.nativeElement.setAttribute('role', 'table'); }
default value seem to be 'table' and this have an impact on UFT Microfocus because all test failed on identification object of type mat-table
In previous version of angular before < 12 default value is grid as you can see :
https://github.com/angular/components/blob/11.2.13/src/cdk/table/table.ts
what is the expected behavior?
The text was updated successfully, but these errors were encountered:
fix(cdk/table): Default role value in angular 12 is now table and bef…
c61090d
…ore it was grid Fixes table role attribute property. changed 'table' to 'grid' Fixes angular#23616
As it seems it was intentionally changed in #22491 . Also, I checked the latest version which is 12.2.8v and the docs are updated as well https://material.angular.io/components/table/overview#accessibility
Expected Behavior
in angular 12.2.5 documentation : https://github.com/angular/components/blob/12.2.5/src/material/table/table.md
you say that :
Table's default role is grid, and it can be changed to treegrid through role attribute.But if we see the source code : https://github.com/angular/components/blob/12.2.5/src/cdk/table/table.ts
if (!role) { this._elementRef.nativeElement.setAttribute('role', 'table'); }default value seem to be 'table' and this have an impact on UFT Microfocus because all test failed on identification object of type mat-table
In previous version of angular before < 12 default value is grid as you can see :
https://github.com/angular/components/blob/11.2.13/src/cdk/table/table.tswhat is the expected behavior?
Environment
The text was updated successfully, but these errors were encountered: