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

Material Icons don't show up #508

Open
marioagarcia opened this issue Jan 7, 2020 · 4 comments
Open

Material Icons don't show up #508

marioagarcia opened this issue Jan 7, 2020 · 4 comments

Comments

@marioagarcia
Copy link

Hi, when I try to use a simple mat-icon element the icon does not show up. Would you tell me what I need to override so that I can use a normal mat-icon like this:

<mat-icon>home</mat-icon>

The reason why I need to use normal mat-icons is that when trying to use the Angular Material's stepper the edit icons that the stepper uses don't show up as they should.

Thank you.

@parthnayak7448
Copy link

Hey @marioagarcia did you find any solutions to use mat-icon?

@tomastrajan
Copy link
Owner

Hi @marioagarcia !

The icons are imported explicitly to reduce bundle size. You have to add it here

Hope that helps!

@marioagarcia
Copy link
Author

Thanks for the tip. I see that is the case for font-awesome icons but not material icons. I am able to see the material icons after adding this to the index.html file:

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">

@parthnayak7448, hope this helps!

@bhagwatipandey
Copy link

Hi @marioagarcia !

The icons are imported explicitly to reduce bundle size. You have to add it here

Hope that helps!

For me it was working when I made the entry in core.module file

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

4 participants