Skip to content

Commit e263fb7

Browse files
crisbetojelbourn
authored andcommitted
fix(list): set explicit box-sizing on icon (#3876)
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.
1 parent d20a4ca commit e263fb7

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
@@ -88,6 +88,7 @@ $mat-dense-list-icon-size: 20px;
8888
width: $icon-size;
8989
height: $icon-size;
9090
font-size: $icon-size;
91+
box-sizing: content-box;
9192
border-radius: 50%;
9293
padding: 4px;
9394
}

0 commit comments

Comments
 (0)