Skip to content

Commit

Permalink
feat(list): add dividers to lists
Browse files Browse the repository at this point in the history
  • Loading branch information
kara committed Apr 5, 2016
1 parent 0a9c169 commit 915dd9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,11 @@ md-list[dense] {

@include md-line-base($md-dense-font-size);
}

}

md-divider {
display: block;
border-top: 1px solid md-color($md-foreground, divider);
margin: 0;
}
4 changes: 1 addition & 3 deletions src/demo-app/list/list-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ <h4 md-line>{{message.from}}</h4>
<span class="demo-secondary-text">{{message.message}}</span>
</p>
</md-list-item>
</md-list>

<md-list>
<md-divider></md-divider>
<md-list-item *ngFor="#message of messages">
<h4 md-line>{{message.from}}</h4>
<p md-line> {{message.subject}} </p>
Expand Down

0 comments on commit 915dd9b

Please sign in to comment.