Skip to content

Commit 9b11fa4

Browse files
committed
feat(material-expeirmental/mdc-list): add support for focus/hover states
and ripples
1 parent 8125651 commit 9b11fa4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ import {MatListBase} from './list-base';
2323
{provide: MatListBase, useExisting: MatActionList},
2424
]
2525
})
26-
export class MatActionList extends MatListBase {}
26+
export class MatActionList extends MatListBase {
27+
_hasRipple = true;
28+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {Subscription} from 'rxjs';
2121
import {startWith} from 'rxjs/operators';
2222

2323
@Directive()
24-
export class MatListBase {
24+
export abstract class MatListBase {
2525
// @HostBinding is used in the class as it is expected to be extended. Since @Component decorator
2626
// metadata is not inherited by child classes, instead the host binding data is defined in a way
2727
// that can be inherited.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ import {MatListBase} from './list-base';
3333
{provide: MatList, useExisting: MatNavList},
3434
]
3535
})
36-
export class MatNavList extends MatListBase {}
36+
export class MatNavList extends MatListBase {
37+
_hasRipple = true;
38+
}

0 commit comments

Comments
 (0)