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

Doesn't work with Font Awesome, Material Icons from Google, etc. #57

Open
mortenmoulder opened this issue Sep 3, 2016 · 4 comments
Open
Assignees
Labels

Comments

@mortenmoulder
Copy link

https://jsfiddle.net/sscm9nr7/

It generates the DOM element perfectly. CSS works just as it should. However, the text doesn't work. When I try this in Angular Material with <md-icon>add</md-icon> for instance, the add text gets included, but it has a default font (like Times New Roman).

With FontAwesome... Well, it's all squares.

https://jsfiddle.net/sscm9nr7/

@mortenmoulder
Copy link
Author

Fixed. Loading the CSS externally doesn't seem to work, so including the Material Icons directly inside the CSS works fine: https://jsfiddle.net/sLc2kcwy/3/

@tsayen
Copy link
Owner

tsayen commented Sep 4, 2016

This problem might be related to #13. I looked at it yesterday and I suspect a bug, as the style inlining didn't seem to work as expected.

@tsayen tsayen reopened this Sep 4, 2016
@tsayen tsayen added the bug label Sep 4, 2016
@tsayen tsayen self-assigned this Sep 4, 2016
@mortenmoulder
Copy link
Author

@tsayen Oh yeah. It's definitely a bug which could be fixed, but a workaround is also working. Not sure why I closed it though.

@IgorKurkov
Copy link

Unfortunately workaround not work for icons from elements kits like angular material where we have components like mat-icon... last fiddle is old.
Any updates?

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

No branches or pull requests

3 participants