material-components / material-components/material-components-android

[MaterialButton] Icon size of icon buttons doesn't match M3 specs

Open
#3,074 4 comments 0 reactions 1 assignee View on GitHub

@raajkumars is already working on this.

Since Nov 16, 2022.

bug Issue: Design Spec Mismatch Widget: Button
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.