Skip to content

Commit

Permalink
feature(md-icon-button): set fixed line height for wrapped content (#…
Browse files Browse the repository at this point in the history
…1469)

`<md-icon></md-icon>` should be centered inside `<button md-icon-button></button>` when it's size is reduced in additional fix it for md-fab

Closes #1426
  • Loading branch information
andrewmnlv authored and hansl committed Nov 1, 2016
1 parent b14bb72 commit 8220452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/button/_button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@ $md-mini-fab-padding: 8px !default;

i, md-icon {
padding: $padding 0;
line-height: $md-icon-button-line-height;
}
}
1 change: 1 addition & 0 deletions src/lib/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
border-radius: $md-icon-button-border-radius;

.md-button-wrapper > * {
line-height: $md-icon-button-line-height;
vertical-align: middle;
}
}
Expand Down

0 comments on commit 8220452

Please sign in to comment.