Skip to content

Commit

Permalink
fix(categories): make list items anchors like component list items (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
willshowell authored and jelbourn committed Aug 29, 2017
1 parent a64482f commit 35659f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<div class="docs-component-category-list">
<md-card
*ngFor="let category of docItems.getItemsInCategories()"
class="docs-component-category-list-card"
[routerLink]="['/categories/', category.id]">
<md-card-title>{{category.name}}</md-card-title>
<p class="docs-component-category-list-card-summary">{{category.summary}}</p>
</md-card>
<a *ngFor="let category of docItems.getItemsInCategories()"
class="docs-component-category-list-item"
[routerLink]="['/categories/', category.id]">
<md-card class="docs-component-category-list-card">
<md-card-title>{{category.name}}</md-card-title>
<p class="docs-component-category-list-card-summary">{{category.summary}}</p>
</md-card>
</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
}
}

.docs-component-category-list-card {
cursor: pointer;
.docs-component-category-list-item {
display: inline-block;
margin: 20px;
vertical-align: top;
Expand All @@ -20,6 +19,10 @@
.mat-card-title {
font-size: 20px;
}

&, &:active, &:hover, &:focus {
text-decoration: none;
}
}

.docs-component-category-list-card-summary {
Expand Down

0 comments on commit 35659f7

Please sign in to comment.