Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: $size - $padding * 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change the $size or the $padding, the md-icon is no longer at the center.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use "line-height: $md-icon-button-line-height;" could solve this issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tinayuangao thank you
updated

}
}
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