Skip to content
Merged
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
7 changes: 7 additions & 0 deletions src/material/button/icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
// Prevent the button from shrinking since it's always supposed to be a circle.
flex-shrink: 0;

// Ensure the icons are centered.
text-align: center;

svg {
vertical-align: baseline;
}

@include button-base.mat-private-button-disabled() {
// The color is already dimmed when the button is disabled. Restore the opacity both to
// help with the color contrast and to align with what we had before switching to the new API.
Expand Down