material-components / material-components/material-components-android
[MaterialButton] Icon size of icon buttons doesn't match M3 specs
@raajkumars is already working on this.
Since Nov 16, 2022.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Hi, it seems that the icon-only button (base) style `Widget.Material3.Button.IconButton` is using a wrong icon size. The attribute `iconSize` uses the resource `@dimen/m3_btn_icon_only_default_size` with a value of `20dp` instead of `24dp` as it is described in the [specs](https://m3.material.io/components/icon-buttons/specs#fbe6913b-2c1b-42c1-be4a-3d73d9dc601d).
**Expected behavior:** The dimension `@dimen/m3_btn_icon_only_default_size` would need to be set to `24dp` instead of `20dp`.
**Source code:**
``` xml
20dp
```
**Material Library version:** 1.8.0-alpha02
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.