We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca16d7 commit d1d2e18Copy full SHA for d1d2e18
src/lib/list/list.scss
@@ -80,7 +80,11 @@ $mat-dense-list-icon-size: 20px;
80
@include mat-line-wrapper-base();
81
padding: 0 $mat-list-side-padding;
82
83
- &:first-child {
+ // We only want to override the padding if there isn't
84
+ // an avatar or icon before the element. Since the ripple
85
+ // will always be the first child in the container, we
86
+ // check whether this element is the second child.
87
+ &:nth-child(2) {
88
padding: 0;
89
}
90
0 commit comments