Skip to content

Commit

Permalink
fix(material/list): match leading icon size in M3 to spec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zarend committed Feb 13, 2024
1 parent 581e42f commit fac45f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/material-experimental/theming/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,13 @@
@if map.get($tokens, list-item-container-color) != null {
$tokens: map.set($tokens, list-item-container-color, transparent);
}

// Match spec, which has list-item-leading-icon-size of 24px. Current version of tokens (0_161)
// has 18px.
@if map.get($tokens, list-item-leading-icon-size) != null {
$tokens: map.set($tokens, list-item-leading-icon-size, 24px);
}

@return $tokens;
}

Expand Down

0 comments on commit fac45f3

Please sign in to comment.