Skip to content

Commit

Permalink
fix(list): set explicit box-sizing on icon (#3876)
Browse files Browse the repository at this point in the history
Sets an explicit `box-sizing` on the icons inside of lists, in order to avoid alignment issues if the consumer uses `border-box` globally.

Fixes #3863.
  • Loading branch information
crisbeto authored and jelbourn committed Apr 17, 2017
1 parent d20a4ca commit e263fb7
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 @@ -88,6 +88,7 @@ $mat-dense-list-icon-size: 20px;
width: $icon-size;
height: $icon-size;
font-size: $icon-size;
box-sizing: content-box;
border-radius: 50%;
padding: 4px;
}
Expand Down

0 comments on commit e263fb7

Please sign in to comment.