Skip to content

[4.0] Convert icon- in toolbar to fa- ( part 1 )#27686

Merged
wilsonge merged 70 commits intojoomla:4.0-devfrom
N6REJ:icon-new
Feb 18, 2020
Merged

[4.0] Convert icon- in toolbar to fa- ( part 1 )#27686
wilsonge merged 70 commits intojoomla:4.0-devfrom
N6REJ:icon-new

Conversation

@N6REJ
Copy link
Contributor

@N6REJ N6REJ commented Jan 28, 2020

Pull Request for Issue #27333

Summary of Changes

change icon- classes to be consistent with using fontawesome 5 classes. ( part 1 )

Testing Instructions

apply pr
run npm ci
edit an article. you will see all the icons in the toolbar.
verify that icons have changed properly and none are missing.

Expected result

Icons are same as before the pr.

Documentation Changes Required

none

@N6REJ N6REJ changed the title [4.0] [DRAFT] Convert icon-new to fa-plus [4.0] [DRAFT] Convert icon- to fa- Jan 28, 2020
@brianteeman
Copy link
Contributor

are you planning to convert all the instances of icon- ??

seems a waste of effort to do this as the icon that is rendered is the fontawesome icon

@Quy
Copy link
Contributor

Quy commented Jan 28, 2020

Yes, please read the following comment: #27333 (comment)

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

are you planning to convert all the instances of icon- ??

seems a waste of effort to do this as the icon that is rendered is the fontawesome icon

because of things like this I'm not sure it's entirely realistic to try to change all in a single pr.. "icon-new" is a great example of the problem.
image

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

@Quy I think we need to wait for #27657 to get merged before moving forward so we are not chasing our tail

@N6REJ N6REJ changed the title [4.0] [DRAFT] Convert icon- to fa- [4.0] [DRAFT] Convert icon- in toolbar to fa- Jan 29, 2020
@C-Lodder
Copy link
Member

seems a waste of effort to do this as the icon that is rendered is the fontawesome icon

@brianteeman The icon-* mappings were there for extension developers to maintain B/C. Ideally they should be made deprecated in 4.0 and removed in 5.0. So moving core to the FA classes would be best done now rather than later.

Of course, the deprecation for icon-* is just my opinion. If it were up to me, those mappings wouldn't even be there.

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

seems a waste of effort to do this as the icon that is rendered is the fontawesome icon

@brianteeman The icon-* mappings were there for extension developers to maintain B/C. Ideally they should be made deprecated in 4.0 and removed in 5.0. So moving core to the FA classes would be best done now rather than later.

Of course, the deprecation for icon-* is just my opinion. If it were up to me, those mappings wouldn't even be there.

I checked with @wilsonge and can confirm they will be gone in J! 5

@brianteeman
Copy link
Contributor

so just mark them as deprecated and get on with something more useful. it really is just renaming for the sake of renaming

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

so just mark them as deprecated and get on with something more useful. it really is just renaming for the sake of renaming

so, your suggestion is to mark them deprecated but NOT fix them?
Is that truly constructive?.

@brianteeman
Copy link
Contributor

They're not brokwn

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

right, but only because we've bastardized fontawesome & when we do remove them in 5 all this work will need to be done.

@brianteeman
Copy link
Contributor

Where have we done that?

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

image
you'll see here we've added icon-options to fontawesome

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

thats just one example

@brianteeman
Copy link
Contributor

That is what is generated by the scss - nothing wrong there at all - it is exactly what you are supposed to do.

As @C-Lodder said before it is there for backwards compatibility so that developers do not have to change all their icons if they dont want to.

@N6REJ
Copy link
Contributor Author

N6REJ commented Jan 29, 2020

no, that is vendor file. It should be sacrosanct and what icomoon map is for. Then that is compiled into template.css

<p><?php echo Text::_('COM_POSTINSTALL_LBL_NOMESSAGES_DESC'); ?></p>
<a href="<?php echo Route::_('index.php?option=com_postinstall&view=messages&task=message.reset&eid=' . $this->eid . '&' . $this->token . '=1'); ?>" class="btn btn-warning btn-lg">
<span class="icon icon-eye-open" aria-hidden="true"></span>
<span class="icon fas fa-eye" aria-hidden="true"></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove icon?

Copy link
Contributor Author

@N6REJ N6REJ Jan 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure. I've not researched how that class is being used there yet. It's not used everywhere icon- is used to I felt it safer to leave it, at least for now.

@brianteeman
Copy link
Contributor

brianteeman commented Jan 29, 2020 via email

…fault_preupdatecheck.php

Co-Authored-By: Quy <quy@fluxbb.org>
@jwaisner
Copy link
Member

@N6REJ Based on the referenced issue the PR doesnt seem to change the issue with the icons in the toolbar. It doesnt break anything but the gap at the bottom still exits.

27686

Please do correct me if I misunderstand the intended result.

@Quy
Copy link
Contributor

Quy commented Feb 12, 2020

@jwaisner That is a separate issue to address later. This PR is to convert icon to fa. See #27333 (comment)

@jwaisner
Copy link
Member

I have tested this item ✅ successfully on b913de3

Tested all icons throughout including a clean install. No issues found with the display related to this PR.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27686.

N6REJ and others added 2 commits February 17, 2020 15:37
…ryField.php

Co-Authored-By: Quy <quy@fluxbb.org>
…eld.php

Co-Authored-By: Quy <quy@fluxbb.org>
N6REJ and others added 2 commits February 17, 2020 15:49
…eld.php

Co-Authored-By: Quy <quy@fluxbb.org>
…dField.php

Co-Authored-By: Quy <quy@fluxbb.org>
@Quy
Copy link
Contributor

Quy commented Feb 18, 2020

I have tested this item ✅ successfully on b913de3


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27686.

@jwaisner
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27686.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 18, 2020
@wilsonge wilsonge merged commit 9bcfb8a into joomla:4.0-dev Feb 18, 2020
@wilsonge
Copy link
Contributor

Thanks guys. Nice work @N6REJ

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 18, 2020
@wilsonge wilsonge added this to the Joomla 4.0 milestone Feb 18, 2020
@N6REJ N6REJ deleted the icon-new branch February 18, 2020 22:57
@N6REJ
Copy link
Contributor Author

N6REJ commented Feb 18, 2020

ty george

@N6REJ N6REJ mentioned this pull request Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants