Skip to content

Commit

Permalink
fix(list): prevent list icon shrinking (#9211)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
devversion authored and andrewseguin committed Jan 12, 2018
1 parent dfbd8d2 commit 5737b9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ $mat-list-item-inset-divider-offset: 72px;
}

.mat-list-icon {
flex-shrink: 0;
width: $icon-size;
height: $icon-size;
font-size: $icon-size;
Expand Down

0 comments on commit 5737b9f

Please sign in to comment.