Skip to content

Commit 601a745

Browse files
committed
fix(material-experimental/theming): cap icon button size
Fixes that the icon button was becoming smaller than its icon at the lowest density.
1 parent 42f2cc9 commit 601a745

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/material-experimental/theming/_m3-density.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ $_density-tokens: (
4141
container-height: (40px, 36px, 32px, 28px),
4242
),
4343
(mdc, icon-button): (
44-
state-layer-size: (40px, 36px, 32px, 28px, 24px, 20px),
44+
// The size caps out at 24px, because anything lower will be smaller than the icon.
45+
state-layer-size: (40px, 36px, 32px, 28px, 24px, 24px),
4546
),
4647
(mdc, linear-progress): (),
4748
(mdc, list): (

0 commit comments

Comments
 (0)