[Bug Report] Button with outline breaks text vertical centering
Versions and Environment
Vuetify: 1.0.4 Vue: 2.5.13 Browsers: Chrome 64.0.3282.186, Mozilla Firefox OS: Windows 10
Steps to reproduce
- Make a v-btn
- Give props == outline, small
Expected Behavior
Text is centered vertically within the button
Actual Behavior
Text is actually a few px lower than center.
Reproduction Link
https://codepen.io/smcolburn/pen/jZdXgG
Other comments
I played with it a fair bit and for whatever reason I can't seem to get it to center properly, adjusting the height or font-size still leaves it a few pixels off though it does improve things slightly.
This is due to height inherit on .btn__content.
I've noticed that text is centered vertically inside the button but a
Property: "fab", Results in: icon displaying on top of the button
@adolfoBee not related, you're loading the icon CSS in the wrong order.
@KaelWD this is the code I'm using:
<v-btn fab small class='green')'>
<v-icon>keyboard_arrow_right</v-icon>
</v-btn>
I have the same issue, then is solved changing the css to:
.btn--floating .icon {
/* height: inherit; */
/* width: inherit; */
}
Now, the icons are centered in middle, not top (still no side effects).
Fixed by https://github.com/vuetifyjs/vuetify/commit/7abf1aa1cea8dad76543f3d554c1d702e81f70cf