You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: The Material 3 MaterialButton style Widget.Material3.Button.OutlinedButton.Icon does not specify an iconSize so this remains at the default wrap_content rather than the 18dp value defined in the Material 3 spec.
Expected behavior: Material 3 Button .Icon styles (or their parents) should all specify a default app:iconSize of 18dp.
seadowg
changed the title
[MaterialButton] iconSize does not match Material 3 specs
[MaterialButton] iconSize does not always match Material 3 specs
May 29, 2023
Thanks so much for reporting this, @seadowg. MaterialButtons should all have a default 18dp iconSize, but it looks like some MaterialButton styles don't inherit from the base Widget.Material3.Button style where that default iconSize is set. We need to either simplify M3 button style inheritance so that all styles inherit from Widget.Material3.Button and the default iconSize is used for all M3 button styles, or just add iconSize to Widget.Material3.Button.TextButton so that all button styles that inherit from Widget.Material3.Button.TextButton get that iconSize.
Description: The Material 3
MaterialButton
styleWidget.Material3.Button.OutlinedButton.Icon
does not specify aniconSize
so this remains at the defaultwrap_content
rather than the18dp
value defined in the Material 3 spec.Expected behavior: Material 3 Button
.Icon
styles (or their parents) should all specify a defaultapp:iconSize
of18dp
.Source code:
The icon displayed by this button will be as large as the icon itself (due to
MaterialButton
usingwrap_content
foriconSize
by default).Material Library version: 1.7.0
The text was updated successfully, but these errors were encountered: