|
1 | 1 | <section> |
2 | | - <h2>Fixed-height grid list</h2> |
3 | | - <md-grid-list [cols]="fixedCols" [rowHeight]="fixedRowHeight"> |
| 2 | + <h2>Types of coffee (fix-height grid-list)</h2> |
| 3 | + <md-grid-list role="list" [cols]="fixedCols" [rowHeight]="fixedRowHeight"> |
4 | 4 | <md-grid-tile *ngFor="let tile of tiles" [colspan]="tile.cols" [rowspan]="tile.rows" |
5 | | - [style.background]="tile.color"> |
| 5 | + [style.background]="tile.color" role="listitem"> |
6 | 6 | {{tile.text}} |
7 | 7 | </md-grid-tile> |
8 | 8 | </md-grid-list> |
9 | 9 | </section> |
10 | 10 |
|
11 | 11 | <section> |
12 | | - <h2>Ratio-height grid list</h2> |
13 | | - <md-grid-list cols="2" [rowHeight]="ratio" gutterSize="4px"> |
14 | | - <md-grid-tile *ngFor="let tile of tiles" [style.background]="'lightblue'"> |
| 12 | + <h2>Types of coffee (ratio-height grid list)</h2> |
| 13 | + <md-grid-list role="list" cols="2" [rowHeight]="ratio" gutterSize="4px"> |
| 14 | + <md-grid-tile *ngFor="let tile of tiles" [style.background]="'lightblue'" role="listitem"> |
15 | 15 | {{tile.text}} |
16 | 16 | </md-grid-tile> |
17 | 17 | </md-grid-list> |
18 | 18 | </section> |
19 | 19 |
|
20 | 20 | <section> |
21 | | - <h2>Fit-height grid list</h2> |
22 | | - <md-grid-list cols="2" rowHeight="fit" [gutterSize]="ratioGutter" |
| 21 | + <h2>Types of coffee (fit-height grid list)</h2> |
| 22 | + <md-grid-list role="list" cols="2" rowHeight="fit" [gutterSize]="ratioGutter" |
23 | 23 | [style.height]="fitListHeight"> |
24 | | - <md-grid-tile *ngFor="let tile of tiles" [style.background]="'#F1EBBA'"> |
| 24 | + <md-grid-tile *ngFor="let tile of tiles" role="listitem" [style.background]="'#F1EBBA'"> |
25 | 25 | {{tile.text}} |
26 | 26 | </md-grid-tile> |
27 | 27 | </md-grid-list> |
28 | 28 | </section> |
29 | 29 |
|
30 | 30 | <section> |
31 | | - <h2>Grid list with header and footer</h2> |
32 | | - <md-grid-list cols="3" rowHeight="200px"> |
33 | | - <md-grid-tile *ngFor="let dog of dogs"> |
| 31 | + <h2>Angular team dogs (Grid list with header and footer)</h2> |
| 32 | + <md-grid-list role="list" cols="3" rowHeight="200px"> |
| 33 | + <md-grid-tile *ngFor="let dog of dogs" role="listitem"> |
34 | 34 | <md-grid-tile-header>{{dog.name}}</md-grid-tile-header> |
35 | | - <img alt="Photo of {{dog.name}}" src="https://material.angularjs.org/material2_assets/ngconf/{{dog.name}}.png"> |
| 35 | + <img alt="Photo of {{dog.name}}" |
| 36 | + src="https://material.angularjs.org/material2_assets/ngconf/{{dog.name}}.png"> |
36 | 37 | <md-grid-tile-footer> |
37 | 38 | <span md-line>Human: {{dog.human}}</span> |
38 | | - <md-icon>star_border</md-icon> |
39 | 39 | </md-grid-tile-footer> |
40 | 40 | </md-grid-tile> |
41 | 41 | </md-grid-list> |
|
0 commit comments