Skip to content

Commit e9a7097

Browse files
willshowelljelbourn
authored andcommittedAug 29, 2017
fix(categories): make list items anchors like component list items (#224)
1 parent 1fedab0 commit e9a7097

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<div class="docs-component-category-list">
2-
<md-card
3-
*ngFor="let category of docItems.getItemsInCategories()"
4-
class="docs-component-category-list-card"
5-
[routerLink]="['/categories/', category.id]">
6-
<md-card-title>{{category.name}}</md-card-title>
7-
<p class="docs-component-category-list-card-summary">{{category.summary}}</p>
8-
</md-card>
2+
<a *ngFor="let category of docItems.getItemsInCategories()"
3+
class="docs-component-category-list-item"
4+
[routerLink]="['/categories/', category.id]">
5+
<md-card class="docs-component-category-list-card">
6+
<md-card-title>{{category.name}}</md-card-title>
7+
<p class="docs-component-category-list-card-summary">{{category.summary}}</p>
8+
</md-card>
9+
</a>
910
</div>

‎material.angular.io/src/app/pages/component-category-list/component-category-list.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
}
1111
}
1212

13-
.docs-component-category-list-card {
14-
cursor: pointer;
13+
.docs-component-category-list-item {
1514
display: inline-block;
1615
margin: 20px;
1716
vertical-align: top;
@@ -20,6 +19,10 @@
2019
.mat-card-title {
2120
font-size: 20px;
2221
}
22+
23+
&, &:active, &:hover, &:focus {
24+
text-decoration: none;
25+
}
2326
}
2427

2528
.docs-component-category-list-card-summary {

0 commit comments

Comments
 (0)
Please sign in to comment.