We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f35599 commit 1d2d7e1Copy full SHA for 1d2d7e1
src/material/button/icon-button.scss
@@ -31,6 +31,13 @@
31
// Prevent the button from shrinking since it's always supposed to be a circle.
32
flex-shrink: 0;
33
34
+ // Ensure the icons are centered.
35
+ text-align: center;
36
+
37
+ svg {
38
+ vertical-align: baseline;
39
+ }
40
41
@include button-base.mat-private-button-disabled() {
42
// The color is already dimmed when the button is disabled. Restore the opacity both to
43
// help with the color contrast and to align with what we had before switching to the new API.
0 commit comments