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 9, 2024
1 parent 3b25f2a commit 6d1c4ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/material-experimental/theming/_m3-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@
@if map.get($tokens, list-item-container-color) != null {
$tokens: map.set($tokens, list-item-container-color, transparent);
}
@return $tokens;

// Match spec, which has list-item-leading-icon-size of 24px. Current version of tokens (0_161)
// has 18px.
@return map.set($tokens, list-item-leading-icon-size, 24px);
}

/// Generates a set of namespaced tokens for all components.
Expand Down

0 comments on commit 6d1c4ef

Please sign in to comment.