Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit bc2fac0

Browse files
epelcThomasBurleson
authored andcommitted
fix(icon): fix icon vertical alignment within md-button.
* Fixed comment about vertical alignment * Narrow selector to affected cases Closes #8066. Closes #8194.
1 parent 6e38d7c commit bc2fac0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/components/button/button.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,15 @@ button.md-button::-moz-focus-inner {
171171
}
172172
}
173173

174+
// Using `display:block;` is required for correct vertical alignment
175+
// because '.md-button' uses `display:inline-block;`.
176+
.md-button.md-icon-button,
177+
button.md-button.md-fab {
178+
md-icon {
179+
display: block;
180+
}
181+
}
182+
174183
._md-toast-open-top {
175184
.md-button.md-fab-top-left,
176185
.md-button.md-fab-top-right {

0 commit comments

Comments
 (0)