Skip to content

Commit 5737b9f

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 dfbd8d2 commit 5737b9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/list/list.scss

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ $mat-list-item-inset-divider-offset: 72px;
134134
}
135135

136136
.mat-list-icon {
137+
flex-shrink: 0;
137138
width: $icon-size;
138139
height: $icon-size;
139140
font-size: $icon-size;

0 commit comments

Comments
 (0)