[4.0] Change to use FontAwesome 5#24648
Conversation
|
Thank you for doing all this work. There is a CSS to keep on using FA4 names with FA5. Should we use this to keep the changes smaller? I also really, REALLY don't like that we can't use the Joomla icon in our own CMS from that icon font. Should we contact them and ask them to move it to the free group? |
Umm, why? I updated https://github.com/joomla/framework.joomla.org to use FA5 a while ago and use the Joomla icon there without issue, you just have to make sure you're loading the brand icons (none of which are in the pro group). |
|
I must have misread the terms of the brand file. As for the v4 to v5 shim @wilsonge correctly pointed out that joomla has never shipped a release with fa4 |
|
I will fix to include the brand if requested but for the sake of one icon I would prefer a different solution with less weight |
|
For the Joomla brand icon let's create our own class that loads the |
|
yes that's what i was thinking. that should be done in its own pr |
|
The other option thinking about it is to load the brand icons in the backend template only. For things like the social media classes might be useful. |
administrator/components/com_media/resources/scripts/components/tree/item.vue
Outdated
Show resolved
Hide resolved
|
if the brand icons are included then it should be in both |
…s/tree/item.vue Co-Authored-By: brianteeman <brian@teeman.net>
|
Personally I don't think that's right. We can be more tight with the resources loaded in the frontend than the backend |
|
The use case for social media icons its much greater in the front end |
|
If anything it's more common to load brand icons in the frontend than it is in the backend. |
|
@wilsonge according to your decision ( joomla/40-backend-template#441 (comment) ) the front end shouldn't have a dependency on FA. I hope you didn't change your mind on this. PS. Also for this case to stand true all of the form fields should be font awesome free, as the fields are common to both sides frontend -backend... |
|
I have added brands and updated the markup where necessary to use it (fa => fab) |
|
@brianteeman Shouldn't there be a change "fa" => "fas" for those icons in the standard package, e.g. change "fa fa-pen-square" to "fas fa-pen-square"? See https://fontawesome.com/icons/pen-square?style=solid That means for Fontawesome 5, the "fa" is in general changed to a three letter class where the last letter is the subpackage where it belongs to, i.e. "b" for brand, "s" for solid, "l" for light and "r" for regular. |
|
no there is no need for that. FA5 supports both fa and fas |
|
Hmm, their icon pages don't show that. |
|
I see: "fas or fa = Font Awesome Solid". Thanks for the info. Seems I missed that in past. |
|
@richard67 and of course I followed best practice and checked that it worked before I submitted the PR |
|
@brianteeman I never assumed something else. But as we are all humans only, we all can make mistakes ;-) |
|
That'll do for now :) We can definitely work on how we optimise things in frontend. But this is now just a straight version upgrade so we don't have to worry about that here Thanks! |
|
Thanks - learnt a lot writing this pr |
|
@Scrabble96 can you please open an new Issue (plus link to this) as Comments on closed one didn't get much notice. |
Hi, @franz-wohlkoenig. Thanks, I have just done so on issue #25915. |





This is quite a big change and will need a composer and npm install to test
Many of the icons have changed name with FA5 see https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes
The icomoon mapping has been updated with the name changes
Where possible I have updated any icons in core to the new names but I may have missed some.