@@ -8,63 +8,63 @@ <h1>mat-list demo</h1>
88 < h2 > Normal lists</ h2 >
99
1010 < mat-list >
11- < h3 mat-subheader > Items</ h3 >
11+ < div mat-subheader > Items</ div >
1212 < mat-list-item *ngFor ="let item of items ">
1313 {{item}}
1414 </ mat-list-item >
1515 </ mat-list >
1616
1717 < mat-list >
1818 < mat-list-item *ngFor ="let contact of contacts ">
19- < h3 mat-line > {{contact.name}}</ h3 >
20- < p mat-line *ngIf ="thirdLine "> extra line</ p >
21- < p mat-line class ="demo-secondary-text "> {{contact.headline}}</ p >
19+ < div mat-line > {{contact.name}}</ div >
20+ < div mat-line *ngIf ="thirdLine "> extra line</ div >
21+ < div mat-line class ="demo-secondary-text "> {{contact.headline}}</ div >
2222 </ mat-list-item >
2323 </ mat-list >
2424
2525 < mat-list >
26- < h3 mat-subheader > Today</ h3 >
26+ < div mat-subheader > Today</ div >
2727 < mat-list-item *ngFor ="let message of messages; last as last ">
2828 < img mat-list-avatar [src] ="message.image " alt ="Image of {{message.from}} ">
29- < h4 mat-line > {{message.from}}</ h4 >
30- < p mat-line >
29+ < div mat-line > {{message.from}}</ div >
30+ < div mat-line >
3131 < span > {{message.subject}} -- </ span >
3232 < span class ="demo-secondary-text "> {{message.message}}</ span >
33- </ p >
33+ </ div >
3434 < mat-divider inset *ngIf ="!last "> </ mat-divider >
3535 </ mat-list-item >
3636 < mat-divider > </ mat-divider >
3737 < mat-list-item *ngFor ="let message of messages ">
38- < h4 mat-line > {{message.from}}</ h4 >
39- < p mat-line > {{message.subject}} </ p >
40- < p mat-line class ="demo-secondary-text "> {{message.message}} </ p >
38+ < div mat-line > {{message.from}}</ div >
39+ < div mat-line > {{message.subject}} </ div >
40+ < div mat-line class ="demo-secondary-text "> {{message.message}} </ div >
4141 </ mat-list-item >
4242 </ mat-list >
4343 </ div >
4444
4545 < div >
4646 < h2 > Dense lists</ h2 >
4747 < mat-list dense >
48- < h3 mat-subheader > Items</ h3 >
48+ < div mat-subheader > Items</ div >
4949 < mat-list-item *ngFor ="let item of items ">
5050 {{item}}
5151 </ mat-list-item >
5252 </ mat-list >
5353
5454 < mat-list dense >
5555 < mat-list-item *ngFor ="let contact of contacts ">
56- < h3 mat-line > {{contact.name}}</ h3 >
57- < p mat-line class ="demo-secondary-text "> {{contact.headline}}</ p >
56+ < div mat-line > {{contact.name}}</ div >
57+ < div mat-line class ="demo-secondary-text "> {{contact.headline}}</ div >
5858 </ mat-list-item >
5959 </ mat-list >
6060
6161 < mat-list dense >
62- < h3 mat-subheader > Today</ h3 >
62+ < div mat-subheader > Today</ div >
6363 < mat-list-item *ngFor ="let message of messages ">
6464 < img mat-list-avatar [src] ="message.image " alt ="Image of {{message.from}} ">
65- < h4 mat-line > {{message.from}}</ h4 >
66- < p mat-line > {{message.subject}} </ p >
67- < p mat-line class ="demo-secondary-text "> {{message.message}} </ p >
65+ < div mat-line > {{message.from}}</ div >
66+ < div mat-line > {{message.subject}} </ div >
67+ < div mat-line class ="demo-secondary-text "> {{message.message}} </ div >
6868 </ mat-list-item >
6969 </ mat-list >
7070 </ div >
@@ -122,7 +122,7 @@ <h2>Selection list</h2>
122122 [disabled] ="selectionListDisabled "
123123 [disableRipple] ="selectionListRippleDisabled "
124124 color ="primary ">
125- < h3 mat-subheader > Groceries</ h3 >
125+ < div mat-subheader > Groceries</ div >
126126
127127 < mat-list-option value ="bananas " checkboxPosition ="before "> Bananas</ mat-list-option >
128128 < mat-list-option selected value ="oranges "> Oranges</ mat-list-option >
@@ -131,7 +131,7 @@ <h3 mat-subheader>Groceries</h3>
131131 </ mat-selection-list >
132132
133133 < mat-selection-list [disableRipple] ="selectionListRippleDisabled ">
134- < h3 mat-subheader > Dogs</ h3 >
134+ < div mat-subheader > Dogs</ div >
135135
136136 < mat-list-option checkboxPosition ="before ">
137137 < img matListAvatar src ="https://material.angular.io/assets/img/examples/shiba1.jpg ">
@@ -170,7 +170,7 @@ <h2>Single Selection list</h2>
170170 [(ngModel)] ="favoriteOptions "
171171 [multiple] ="false "
172172 color ="primary ">
173- < h3 mat-subheader > Favorite Grocery</ h3 >
173+ < div mat-subheader > Favorite Grocery</ div >
174174
175175 < mat-list-option value ="bananas "> Bananas</ mat-list-option >
176176 < mat-list-option selected value ="oranges "> Oranges</ mat-list-option >
0 commit comments