Skip to content

Commit 2578712

Browse files
committed
fix(material/button): prevents mat-icon being cut off with text-spacing vertically
Updates Angular Components Button component specifically for .mat-icon buttons to add a min-height of min-content to avoid the icon from being cut off on the bottom when text-spacing is applied. Fixes b/250063405
1 parent 357cfd3 commit 2578712

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/button/button.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
.mat-mdc-button-base {
99
text-decoration: none;
10+
// Makes button icon not cut off/shrink vertically making the icon visible to fix b/250063405
11+
& .mat-icon {
12+
min-height: min-content;
13+
}
1014
}
1115

1216
.mdc-button {

0 commit comments

Comments
 (0)