Skip to content

Commit 9e69344

Browse files
committed
fix(list): set explicit box-sizing on icon
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 9d719c5 commit 9e69344

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)