Vuetify: [Bug Report] FAB icon not centered vertically

Created on 7 May 2018  路  3Comments  路  Source: vuetifyjs/vuetify

Versions and Environment

Vuetify: 1.0.17
Vue: 2.5.2
Browsers: Chrome 66.0.3359.139
OS: Windows 10

Steps to reproduce

Just load page.

Expected Behavior

FAB icon centered vertically

Actual Behavior

FAB icon not centered vertically

Reproduction Link

https://codepen.io/miklever/pen/PeOeLZ

Other comments

It looks that it's happened because of md icon display=inline-block property. Please see CSS in reproduction template attached.

layer 8 issue

Most helpful comment

Too simple to be truth :) I've added this class trying to fix described behavior and forgot to remove it. But I've found the reason: this is because I've imported material-design-icons-iconfont after Vuetify CSS styles. So Vuetify icon display property (inline-flex) was overridden by MD font property (inline-block). Sorry for inconvenience.

All 3 comments

Remove class="d-block"

Too simple to be truth :) I've added this class trying to fix described behavior and forgot to remove it. But I've found the reason: this is because I've imported material-design-icons-iconfont after Vuetify CSS styles. So Vuetify icon display property (inline-flex) was overridden by MD font property (inline-block). Sorry for inconvenience.

vuetifyjs/vuetifyjs.com#353

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Webifi picture Webifi  路  3Comments

alterhu2020 picture alterhu2020  路  3Comments

dohomi picture dohomi  路  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  路  3Comments

cawa-93 picture cawa-93  路  3Comments