Skip to content

Commit 297bc8d

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 angular#3863.
1 parent f40296e commit 297bc8d

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
@@ -86,6 +86,7 @@ $mat-dense-three-line-height: 76px;
8686
.mat-list-icon {
8787
width: $mat-list-icon-size;
8888
height: $mat-list-icon-size;
89+
box-sizing: content-box;
8990
border-radius: 50%;
9091
padding: 4px;
9192
}

0 commit comments

Comments
 (0)