akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.05k stars 1.51k forks source link

NbIconLibraries RegisterFontPack cant understand (nb-icon eva) #1579

Open gemins opened 5 years ago

gemins commented 5 years ago

Issue type

I'm submitting a ...

Issue description

Current behavior: I'm trying migrate from v3.* to v4 and cant understand how create a pack of icons for eva-icon (nb-icon component).

I have two style files with font-icons, how can registerFontPack with a font-family name and listo of icon's name?

Expected behavior: Create a FontPack type:font

Steps to reproduce: i'm using this function:

let ecommerce_icons = [
{"025-cashbox": "\f100"}
]
this.iconLibraries.registerFontPack('ecommerce', { font: 'Ecommerce', icons: ecommerce_icons , iconClassPrefix: 'ecommerce' });

Thanks!

nnixaa commented 5 years ago

Check the https://akveo.github.io/nebular/docs/migration/350400-migration#5-migrate-to-evaicons Continue using nebular-icons section. While registering a Font set you don't need to specify the list of icons, simply pack name and class prefix.

yggg commented 5 years ago

We have a guide on custom icons now, could be helpful.