Skip to content

Commit

Permalink
fix(button-toggle): svg icon not align inside toggle (#13839)
Browse files Browse the repository at this point in the history
Fixes the `svg` node inside the icon being shifted down inside a button toggle.

Fixes #13726.
  • Loading branch information
crisbeto authored and Vivian Hu committed Nov 12, 2018
1 parent 44322ee commit 2814a99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/button-toggle/button-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ $mat-button-toggle-legacy-border-radius: 2px !default;
white-space: nowrap;
position: relative;

// Fixes SVG icons that get thrown off because of the `vertical-align` on the parent.
.mat-icon svg {
vertical-align: top;
}

&.cdk-keyboard-focused {
.mat-button-toggle-focus-overlay {
opacity: 1;
Expand Down

0 comments on commit 2814a99

Please sign in to comment.