Skip to content

Commit 8220452

Browse files
andrewmnlvhansl
authored andcommitted
feature(md-icon-button): set fixed line height for wrapped content (#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
1 parent b14bb72 commit 8220452

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/button/_button-base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,6 @@ $md-mini-fab-padding: 8px !default;
112112

113113
i, md-icon {
114114
padding: $padding 0;
115+
line-height: $md-icon-button-line-height;
115116
}
116117
}

src/lib/button/button.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
border-radius: $md-icon-button-border-radius;
4444

4545
.md-button-wrapper > * {
46+
line-height: $md-icon-button-line-height;
4647
vertical-align: middle;
4748
}
4849
}

0 commit comments

Comments
 (0)