vendredi 24 juillet 2020

Ember.js, FontAwesome & Sass

I have an Ember.js project where I use Fontawesome5 and Sass. Creating an icon is easy with <FaIcon @icon="..."/>. But now I want to use an icon from Fontawesome with Sass (more specifically with list-style). I guess I could use the way it is described in the fontawesome-sass-documentation, but this feels wrong in more than one way.

I tried to create a route get-icon, that I could use with list-style: url(...), but as far as I see that can't work with ember.js.

So is there a preferred way to get a fontawesome icon for list-style in an ember project?




Aucun commentaire:

Enregistrer un commentaire