Skip to content

Commit

Permalink
fix(list): remove overflow hidden from content (#4426)
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion authored and kara committed May 11, 2017
1 parent 2c8faf6 commit 078aa19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/list/list-item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="mat-list-item-content" [class.mat-list-item-focus]="_hasFocus"
md-ripple [mdRippleDisabled]="!isRippleEnabled()">
<div class="mat-list-item-content" [class.mat-list-item-focus]="_hasFocus">
<div class="mat-list-item-ripple" md-ripple [mdRippleDisabled]="!isRippleEnabled()"></div>
<ng-content
select="[md-list-avatar],[md-list-icon], [mat-list-avatar], [mat-list-icon]"></ng-content>
<div class="mat-list-text"><ng-content select="[md-line], [mat-line]"></ng-content></div>
Expand Down
8 changes: 8 additions & 0 deletions src/lib/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ $mat-dense-list-icon-size: 20px;
position: relative;
}

.mat-list-item-ripple {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
}

&.mat-list-item-avatar .mat-list-item-content {
height: $avatar-height;
}
Expand Down

0 comments on commit 078aa19

Please sign in to comment.