Cweili / svelte-fa

Tiny FontAwesome component for Svelte

Home Page:https://cweili.github.io/svelte-fa/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't play nice with @fortawesome/fontawesome-free

blake-regalia opened this issue · comments

It seems that after a recent package upgrade, if your page globally imports the fontawesome-free library (i.e., separate from svelte), the package will replace anything with the "fa" class including svg tags. The result is now all the svgs created by svelte-fa are getting their innards replaced with fontawesome's flashing error icon indicator which alternates between "?" and "!"
Screen Shot 2021-10-27 at 14 52 59

Diving into the code, if I remove the "fa" class from the svelte-fa component, everything works fine. Is this class really necessary on the svg tag? It is causing issues for pages that already include the fontawesome library.

Fixed in v2.4.0 [b1787f2]