-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Deprecate unused $iconOver #31211
Conversation
This can't be removed without rewriting all uses of the method (B/C break) or adding B/C layer based on argument count. |
@SharkyKZ well, the thing is its not even used!!! joomla-cms/libraries/src/Toolbar/ToolbarHelper.php Lines 102 to 111 in 425de68
if you add $iconOver to the appendButton function it becomes a text value in place of the normal text.. i.e. everything is out of sync. in 3.x it an override NOT hover ( which makes sense since it would be damn hard to create a hover I think ) if you look @ the function its is brought in in the function variables but then does nothing. I'm open as to what to do because clearly I'd have TONS of icon,icon to change to icon, if I'm to do it 100% correct. As it stands its totally broken. In 3.x you'll see its being used as ?? THAT would be extremely easy to implement though I would still have tons of icon,icon to clean up. |
@wilsonge thoughts? |
After discussing @ length with @SharkyKZ we decided to leave the variable but deprecate its behavior. |
People might call for |
This should be closed #31211 (comment) and a new pr opened for the deprecation |
Thats what this is! |
It is now you changed the title :) |
…conover-4 � Conflicts: � administrator/components/com_templates/src/View/Template/HtmlView.php
Co-authored-by: Quy <quy@fluxbb.org>
Co-authored-by: Quy <quy@fluxbb.org>
# Conflicts: # administrator/components/com_cache/src/View/Cache/HtmlView.php
I have tested this item ✅ successfully on 29a54db This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31211. |
I have tested this item ✅ successfully on 70cbc49 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31211. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31211. |
Thanks! |
Pull Request for Issue #30211
Summary of Changes
Removes unused $iconOver param.
In 1.5 days this was used as an override ( not hover as stated now ) but has never been implemented in 4.+ so might as well just remove it. If its determined later that its useful we can always create it because as it is now it does NOTHING.
Testing Instructions
notice that toolbar icons display.
apply pr.
make sure toolbar icons still display.
hover over icons notice the icons remain.
Actual result BEFORE applying this Pull Request
nothing noted
Expected result AFTER applying this Pull Request
no visual changes.
Documentation Changes Required
Deprecate $iconOver in 5.x