Skip to content

Commit c3e2635

Browse files
devversionandrewseguin
authored andcommitted
fix(list): prevent list icon shrinking (#9211)
* Since the list-item uses flexbox, it can happen that the `matListIcon` shrinks to make place for the `mat-list-text`. Similar as for the `matListAvatar` shrinking should be disabled for the `matListIcon`. Fixes #8699
1 parent e4e1844 commit c3e2635

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/list/list.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ $mat-dense-list-icon-size: 20px;
109109
}
110110

111111
.mat-list-icon {
112+
flex-shrink: 0;
112113
width: $icon-size;
113114
height: $icon-size;
114115
font-size: $icon-size;

0 commit comments

Comments
 (0)