Skip to content

Commit

Permalink
fix(list): fix padding for list items (#4486)
Browse files Browse the repository at this point in the history
  • Loading branch information
kara authored May 11, 2017
1 parent 4ca16d7 commit d1d2e18
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ $mat-dense-list-icon-size: 20px;
@include mat-line-wrapper-base();
padding: 0 $mat-list-side-padding;

&:first-child {
// We only want to override the padding if there isn't
// an avatar or icon before the element. Since the ripple
// will always be the first child in the container, we
// check whether this element is the second child.
&:nth-child(2) {
padding: 0;
}
}
Expand Down

0 comments on commit d1d2e18

Please sign in to comment.