FontAwesome support for PrimeNG

UI Components for Angular
Post Reply
User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

03 Sep 2018, 15:49

Recently sometime back PrimeNG replaced fontawesome icons with new PrimeIcons. PrimeIcons is recently started and it may take some time to get all the required icons but FA has around 4k icons. If the existing projects which already using FA may break with these changes. Is there any support or workaround to continue FA for sometime?
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

mcskillet
Posts: 8
Joined: 02 Apr 2018, 17:33

18 Sep 2018, 16:23

I believe the font-awesome icons will still work in your projects as long as you (1) keep the "node_modules/font-awesome/css/font-awesome.min.css" style set in .angular-cli.json, and (2) reference all font-awesome icons preceded by the 'fa' designator:
<button pButton type="button" label="Copy" icon="fa fa-clipboard"></button>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests