Skip to content

Commit 32dcb2a

Browse files
committed
fix(list): not working correctly when list item is used as a button
Based on our selector for `mat-list-item`, we allow it to be a `button`, however we don't do the necessary resets for it to be usable.
1 parent 6afe3f5 commit 32dcb2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/list/list.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ $mat-list-item-inset-divider-offset: 72px;
4343
height: $base-height;
4444
-webkit-tap-highlight-color: transparent;
4545

46+
// Button resets.
47+
border: none;
48+
background: none;
49+
padding: 0;
50+
width: 100%;
51+
4652
.mat-list-item-content {
4753
display: flex;
4854
flex-direction: row;

0 commit comments

Comments
 (0)