Skip to content

Commit fac45f3

Browse files
committed
fix(material/list): match leading icon size in M3 to spec
Increase size of the leading icon in M3 List to 24px. Match spec, which has list-item-leading-icon-size of 24px. Current version of tokens (0_161) has 18px. Does not affect M2 List.
1 parent 581e42f commit fac45f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/material-experimental/theming/_m3-tokens.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,13 @@
475475
@if map.get($tokens, list-item-container-color) != null {
476476
$tokens: map.set($tokens, list-item-container-color, transparent);
477477
}
478+
479+
// Match spec, which has list-item-leading-icon-size of 24px. Current version of tokens (0_161)
480+
// has 18px.
481+
@if map.get($tokens, list-item-leading-icon-size) != null {
482+
$tokens: map.set($tokens, list-item-leading-icon-size, 24px);
483+
}
484+
478485
@return $tokens;
479486
}
480487

0 commit comments

Comments
 (0)