Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit c791312

Browse files
authored
docs(list): fix list example (#130)
1 parent 223c3e7 commit c791312

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
/** No CSS for this example */
1+
.mat-list-icon {
2+
color: rgba(0,0,0,0.54);
3+
}
4+

src/app/examples/list-sections/list-sections-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<md-list>
22
<h3 md-subheader>Folders</h3>
33
<md-list-item *ngFor="let folder of folders">
4-
<md-icon md-list-avatar>folder</md-icon>
4+
<md-icon md-list-icon>folder</md-icon>
55
<h4 md-line>{{folder.name}}</h4>
66
<p md-line> {{folder.updated | date}} </p>
77
</md-list-item>
88
<md-divider></md-divider>
99
<h3 md-subheader>Notes</h3>
1010
<md-list-item *ngFor="let note of notes">
11-
<md-icon md-list-avatar>note</md-icon>
11+
<md-icon md-list-icon>note</md-icon>
1212
<h4 md-line>{{note.name}}</h4>
1313
<p md-line> {{note.updated | date}} </p>
1414
</md-list-item>

src/app/examples/list-sections/list-sections-example.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'list-sections-example',
6+
styleUrls: ['./list-sections-example.css'],
67
templateUrl: './list-sections-example.html',
78
})
89
export class ListSectionsExample {

0 commit comments

Comments
 (0)