From 6d1c4efa95e27aaaea4fd3faed8228a8b02813a7 Mon Sep 17 00:00:00 2001 From: Zach Arend Date: Thu, 8 Feb 2024 22:45:56 +0000 Subject: [PATCH] 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. --- src/material-experimental/theming/_m3-tokens.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/material-experimental/theming/_m3-tokens.scss b/src/material-experimental/theming/_m3-tokens.scss index f288634bce55..47c6b8321448 100644 --- a/src/material-experimental/theming/_m3-tokens.scss +++ b/src/material-experimental/theming/_m3-tokens.scss @@ -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.