Skip to content

Commit d351ca4

Browse files
committed
fix(material-experimental/mdc-list): set a role on MatNavList and MatActionList
make the following changes to align with legacy version of list - `MatNavList` apply `role="navigation"` - `MatActionList` apply `role="group"`
1 parent 00d5f27 commit d351ca4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/material-experimental/mdc-list/action-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {MatListBase} from './list-base';
1515
template: '<ng-content></ng-content>',
1616
host: {
1717
'class': 'mat-mdc-action-list mat-mdc-list-base mdc-list',
18+
'role': 'group',
1819
},
1920
styleUrls: ['list.css'],
2021
encapsulation: ViewEncapsulation.None,

src/material-experimental/mdc-list/nav-list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {MatListBase} from './list-base';
1515
template: '<ng-content></ng-content>',
1616
host: {
1717
'class': 'mat-mdc-nav-list mat-mdc-list-base mdc-list',
18+
'role': 'navigation',
1819
},
1920
styleUrls: ['list.css'],
2021
encapsulation: ViewEncapsulation.None,

0 commit comments

Comments
 (0)