Skip to content

Commit b5b5d00

Browse files
committed
fix(material/icon): mat-icon misaligned when text-spacing is applied
Fixes an issue with Angular Components Material Icon component where when text-spacing is applied the icon gets misaligned and if inside of an input or container with an outline, the icon gets cut off. This fix adds css styling to keep the icon middle-aligned when text-spacing is applied. Fixes b/250063405
1 parent 30e09d7 commit b5b5d00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/icon/icon.scss

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ mat-icon {
2828
fill: currentColor;
2929
height: $size;
3030
width: $size;
31+
vertical-align: middle;
3132

3233
// In some cases the icon elements may extend beyond the container. Clip these cases
3334
// in order to avoid weird overflows and click areas. See #11826.

0 commit comments

Comments
 (0)