Skip to content

Commit 4051dd0

Browse files
committed
fix(material/button): increase touch target for icon buttons
Updates Angular Components Button styles for icon buttons to add pseudo class styles to increase the icon buttons' target size. Fixes b/378903269
1 parent 8950ec3 commit 4051dd0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/material/button/icon-button.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,19 @@
9292
opacity: 1;
9393
}
9494
}
95+
96+
&::after {
97+
content: '';
98+
padding: 8px;
99+
margin: -8px;
100+
box-sizing: border-box;
101+
background-clip: content-box;
102+
left: 0;
103+
right: 0;
104+
display: block;
105+
position: absolute;
106+
opacity: 0;
107+
top: 0;
108+
bottom: 0;
109+
}
95110
}

0 commit comments

Comments
 (0)