Skip to content

Commit

Permalink
fix(material-experimental/theming): cap icon button size
Browse files Browse the repository at this point in the history
Fixes that the icon button was becoming smaller than its icon at the lowest density.
  • Loading branch information
crisbeto committed Jan 18, 2024
1 parent 42f2cc9 commit 601a745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/material-experimental/theming/_m3-density.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ $_density-tokens: (
container-height: (40px, 36px, 32px, 28px),
),
(mdc, icon-button): (
state-layer-size: (40px, 36px, 32px, 28px, 24px, 20px),
// The size caps out at 24px, because anything lower will be smaller than the icon.
state-layer-size: (40px, 36px, 32px, 28px, 24px, 24px),
),
(mdc, linear-progress): (),
(mdc, list): (
Expand Down

0 comments on commit 601a745

Please sign in to comment.