@@ -32,8 +32,8 @@ Output:
3232
3333### Multi-line lists
3434
35- If your list requires multiple lines per list item, annotate each line with an ` md-line ` attribute.
36- You can use whichever heading tag is appropriate for your DOM hierarchy (doesn't have to be ` h3 ` ),
35+ If your list requires multiple lines per list item, annotate each line with an ` md-line ` attribute.
36+ You can use whichever heading tag is appropriate for your DOM hierarchy (doesn't have to be ` h3 ` ),
3737as long as the ` md-line ` attribute is included.
3838
3939``` html
@@ -62,13 +62,13 @@ Two line list output:
6262
6363<img src =" https://material.angularjs.org/material2_assets/list/two-line-list.png " >
6464
65- Three line list output:
65+ Three line list output:
6666
6767<img src =" https://material.angularjs.org/material2_assets/list/three-line-list.png " >
6868
6969### Lists with avatars
7070
71- To include an avatar, add an image tag with an ` md-list-avatar ` attribute.
71+ To include an avatar, add an image tag with an ` md-list-avatar ` attribute.
7272
7373``` html
7474<md-list >
@@ -86,11 +86,11 @@ To include an avatar, add an image tag with an `md-list-avatar` attribute.
8686Output:
8787
8888<img src =" https://material.angularjs.org/material2_assets/list/list-with-avatar-2.png " >
89-
89+
9090### Dense lists
91- Lists are also available in "dense layout" mode, which shrinks the font size and height of the list
92- to suit UIs that may need to display more information. To enable this mode, add a ` dense ` attribute
93- to the main ` md-list ` tag.
91+ Lists are also available in "dense layout" mode, which shrinks the font size and height of the list
92+ to suit UIs that may need to display more information. To enable this mode, add a ` dense ` attribute
93+ to the main ` md-list ` tag.
9494
9595
9696``` html
@@ -114,17 +114,17 @@ use `<md-divider>` tags.
114114<md-list >
115115 <h3 md-subheader >Folders</h3 >
116116 <md-list-item *ngFor =" #folder of folders" >
117- <i md-list-avatar class = " material-icons " >folder</i >
117+ <md-icon md-list-avatar >folder</md-icon >
118118 <h4 md-line >{{folder.name}}</h4 >
119119 <p md-line class =" demo-2" > {{folder.updated}} </p >
120120 </md-list-item >
121121 <md-divider ></md-divider >
122122 <h3 md-subheader >Notes</h3 >
123123 <md-list-item *ngFor =" #note of notes" >
124- <i md-list-avatar class = " material-icons " >note</i >
124+ <md-icon md-list-avatar >note</md-icon >
125125 <h4 md-line >{{note.name}}</h4 >
126126 <p md-line class =" demo-2" > {{note.updated}} </p >
127- </md-list-item >
127+ </md-list-item >
128128</md-list >
129129```
130130
@@ -151,13 +151,13 @@ If you require a more complex nav list (e.g. with more than one target per item)
151151 <md-list-item *ngFor =" #link of links" >
152152 <a md-line href =" ..." >{{ link }}</a >
153153 <button md-icon-button (click) =" showInfo(link)" >
154- <i class = " material-icons " >info</i >
154+ <md-icon >info</md-icon >
155155 </button >
156156 </md-list-item >
157157</md-nav-list >
158158```
159159
160160### Lists with secondary text
161- Secondary text styling will be part of a broader typography module to
162- [ come later] ( https://github.com/angular/material2/issues/205 ) , and won’t be implemented as part of this component
161+ Secondary text styling will be part of a broader typography module to
162+ [ come later] ( https://github.com/angular/material2/issues/205 ) , and won’t be implemented as part of this component
163163specifically. Gray text in the examples above comes from a "demo-2" class added manually by the demo.
0 commit comments