Skip to content

Commit

Permalink
fix(material-experimental/mdc-list): set a role on MatNavList and Mat…
Browse files Browse the repository at this point in the history
…ActionList

make the following changes to align with legacy version of list
 - `MatNavList` apply `role="navigation"`
 - `MatActionList` apply `role="group"`
  • Loading branch information
zarend committed Aug 8, 2022
1 parent 00d5f27 commit d351ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/material-experimental/mdc-list/action-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {MatListBase} from './list-base';
template: '<ng-content></ng-content>',
host: {
'class': 'mat-mdc-action-list mat-mdc-list-base mdc-list',
'role': 'group',
},
styleUrls: ['list.css'],
encapsulation: ViewEncapsulation.None,
Expand Down
1 change: 1 addition & 0 deletions src/material-experimental/mdc-list/nav-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {MatListBase} from './list-base';
template: '<ng-content></ng-content>',
host: {
'class': 'mat-mdc-nav-list mat-mdc-list-base mdc-list',
'role': 'navigation',
},
styleUrls: ['list.css'],
encapsulation: ViewEncapsulation.None,
Expand Down

0 comments on commit d351ca4

Please sign in to comment.