mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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
This commit is contained in:
@@ -112,5 +112,6 @@ $md-mini-fab-padding: 8px !default;
|
||||
|
||||
i, md-icon {
|
||||
padding: $padding 0;
|
||||
line-height: $md-icon-button-line-height;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
border-radius: $md-icon-button-border-radius;
|
||||
|
||||
.md-button-wrapper > * {
|
||||
line-height: $md-icon-button-line-height;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user