Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/material/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ $fallbacks: m3-button.get-tokens();

// Similar to MDC's `_icon-structure`, apart from the margin which we
// handle via custom tokens in `mat-private-button-horizontal-layout`.
// `rotate: 0.03deg` Fixes a browser rendering issue that causes icons to be cut off in some
// cases.
// See: https://github.com/angular/components/issues/30763
// See: https://github.com/google/material-design-icons/issues/679
& > .mat-icon {
$icon-size: 1.125rem;
display: inline-block;
Expand All @@ -297,6 +301,7 @@ $fallbacks: m3-button.get-tokens();
font-size: $icon-size;
height: $icon-size;
width: $icon-size;
rotate: 0.03deg;
}
}

Expand Down
Loading