Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-md-icon cannot vertical align middle while in the md-fab #24

Closed
januslo opened this issue Jul 8, 2015 · 2 comments
Closed

ng-md-icon cannot vertical align middle while in the md-fab #24

januslo opened this issue Jul 8, 2015 · 2 comments

Comments

@januslo
Copy link

januslo commented Jul 8, 2015

I found ng-md-icon cannot vertical align middle while in the md-fab as the code i wrote:

<md-button class="md-fab md-primary md-fab-bottom-right" ng-href="tel:{{nativeInfo.customerPhone}}">
    <ng-md-icon icon="call" style="fill:white" size="20"></ng-md-icon>
</md-button>

After Intercepted the html code generated, I found the inner svg element has no any display property set. I tried to fix this by adding the "display:block" as the css following:

.md-button.md-fab ng-md-icon svg{
display: block;
}

May I have your confirmation or suggestion ?

@quantuminformation
Copy link

Please see this issue for workaround:

#15

@januslo
Copy link
Author

januslo commented Jul 8, 2015

@quantuminformation it works for me, after tested, I found "line-height:1" is enough for this issue. as the code:
ng-md-icon {
/_/
/fill: currentColor;/
/vertical-align: middle;/
/_display: inline-block;
/
line-height: 1;
}
anyway, let's close this for this issue maybe the same as the #15 .

@januslo januslo closed this as completed Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants