mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-21 12:33:04 +08:00
With MaterialButton, if we want an icon to be center aligned when there's no text, we need to set icon padding to 0dp and icon gravity to text-start or text-end. Updates the M3 style to make the icon center aligned. Resolves https://github.com/material-components/material-components-android/issues/2388 PiperOrigin-RevId: 400242967