From 727b760fa4436086e7ec1ccf47ff498817a41904 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/material-experimental/theming/_m3-tokens.scss b/src/material-experimental/theming/_m3-tokens.scss index f288634bce55..edff599becbf 100644 --- a/src/material-experimental/theming/_m3-tokens.scss +++ b/src/material-experimental/theming/_m3-tokens.scss @@ -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; }