-
Notifications
You must be signed in to change notification settings - Fork 6.7k
/
nav-list.ts
32 lines (30 loc) · 1.23 KB
/
nav-list.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
import {MatListBase} from './list-base';
@Component({
selector: 'mat-nav-list',
exportAs: 'matNavList',
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,
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [{provide: MatListBase, useExisting: MatNavList}],
})
export class MatNavList extends MatListBase {
// An navigation list is considered interactive, but does not extend the interactive list
// base class. We do this because as per MDC, items of interactive lists are only reachable
// through keyboard shortcuts. We want all items for the navigation list to be reachable
// through tab key as we do not intend to provide any special accessibility treatment. The
// accessibility treatment depends on how the end-user will interact with it.
override _isNonInteractive = false;
}