Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-fab icon position is not right with href attribute #591

Closed
allenhwkim opened this issue Nov 10, 2014 · 0 comments
Closed

md-fab icon position is not right with href attribute #591

allenhwkim opened this issue Nov 10, 2014 · 0 comments
Assignees
Milestone

Comments

@allenhwkim
Copy link

As you see here, http://plnkr.co/edit/YnTpzONccsaQk7KDNRIL?p=preview

When md-fab button has a href, the icon position gets wrong top positioned.

The easy fix for this is, to set line-height of "a" in md-fab. demo

 a.md-fab {
    line-height: 4.9rem; /* 49px; 56(height)-12(padding)+5(margin) */
  } 

However, IMHO, the ideal fix for this is to position items in md-fab with flex box, 'center center', so that this is not necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants