ng-lightning / ng-lightning

Native Angular components & directives for Lightning Design System

Home Page:http://ng-lightning.github.io/ng-lightning/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Icons do not work in new project and on example stackblitz

paustint opened this issue · comments

It seems that the icons do not work. I just started a new project to test things out and I was unable to get icons to show up. When I looked on the examples on StackBlitz, the icons did not work there either.

I was able to get the icons to work by manually copying the icon folder into my asset folder (I struggled trying to get it to work using a glob for the angular build process - but should be possible).

I think the getting started guild should include some guidance on what is required to ensure icons work.

https://ng-lightning.github.io/ng-lightning/#/components/icons

image

image

@paustint Thx for pointing out this issue to us :) Actually, our demo page is an Angular CLI project and we use the same steps to make it work as on any other new angular-cli project. I describe the new step here: 9bff21b.

In brief you have to add this snippet to your assets:

{
    "glob": "**/*",
    "input": "node_modules/@salesforce-ux/design-system/assets/",
    "output": "/assets"
  },