?
avatar N6REJ
N6REJ
26 Jan 2020

Steps to reproduce the issue

fontawesome 4 and below used .fa fa- with fontawesome 5 that is no longer the case.

Expected result

fontawesome 5 native classes used

Actual result

fontawesome 4 classes used.

System information (as much as possible)

Additional comments

I have a pr ready to go but I'm waiting on clarification on how to write up the testing instructions.
https://github.com/N6REJ/joomla-cms/tree/fa-5

avatar N6REJ N6REJ - open - 26 Jan 2020
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jan 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jan 2020
avatar N6REJ
N6REJ - comment - 26 Jan 2020

@HLeithner here you go.

avatar Quy
Quy - comment - 26 Jan 2020

Are you looking for the following instructions?

Apply PR
Runnpm run i
Browse frontend and backend to make sure no visible changes with the icons.

avatar N6REJ
N6REJ - comment - 26 Jan 2020

@Quy what about the changes to the .sql file(s)

avatar brianteeman
brianteeman - comment - 26 Jan 2020

Hint - your code is not correct.Global search and replace will not be enough

avatar Quy
Quy - comment - 26 Jan 2020

Changed the above instructions.

@richard67 please advise on the sql. I think apply the PR. Delete configuration file and reinstall.

avatar richard67
richard67 - comment - 26 Jan 2020

@N6REJ Your sql changes are ok because as long as we have not beta yet we don't promise updateability and so still can modify existing old 4.0*.sql update scripts. As far as I could see you only modified those statements where new data is inserted for J4, you did not try to modify any already existing data (which would be dangerous), and so I think they are correct. But I see no way to test them except to build an own update package and update a J3, and this result in a mess currently for other reasons. So your sql changes can be only tested by code review.

avatar richard67
richard67 - comment - 26 Jan 2020

Of course it needs to check for each of the icons to which package they belong, fas (standard) or e.g. fab (brands). As far as I know almost all belong to fas, but I remember there were a few exceptions.

avatar brianteeman
brianteeman - comment - 26 Jan 2020

@richard67 that is one of the reasons why the code is wrong but you will see that in 2 seconds when you test it as it is so obvious

avatar richard67
richard67 - comment - 26 Jan 2020

@brianteeman to be honest: up to now it looks all correct to me. we are already using the 3 letter class for the package when it is not "fas", like e.g. "fab", and the 2 letter "fa" is a synonym for "fas" as far as i could see here: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#changes. So either their page is wrong, or the code provided by Troy is right. Question: Have you tested that yourself?

avatar N6REJ
N6REJ - comment - 26 Jan 2020

closed since we have pr #27657

avatar N6REJ N6REJ - close - 26 Jan 2020
avatar N6REJ N6REJ - change - 26 Jan 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-01-26 10:58:51
Closed_By N6REJ
avatar brianteeman
brianteeman - comment - 26 Jan 2020

@richard67 of course I tested it. I wrote the original PR to update from fa 4 so I know what is involved and this is not correct

Add a Comment

Login with GitHub to post a comment