Skip to content

Commit 39d08fc

Browse files
committed
fix(icon): clip overflowing icon elements
Clips any elements that are overflowing an icon. This avoids issues where parts of the icon could stick out and layouts. Fixes #11826.
1 parent 36db1c0 commit 39d08fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/icon/icon.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ $mat-icon-size: 24px !default;
1111
height: $mat-icon-size;
1212
width: $mat-icon-size;
1313

14+
// In some cases the icon elements may extend beyond the container. Clip these cases
15+
// in order to avoid weird overflows and click areas. See #11826.
16+
overflow: hidden;
17+
1418
&.mat-icon-inline {
1519
font-size: inherit;
1620
height: inherit;

0 commit comments

Comments
 (0)