magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

loader icon hardcoded inside php #36865

Open mrtuvn opened 1 year ago

mrtuvn commented 1 year ago

Summary

Looking at codebase i found icon loader set from php and seem no other clean way to touch in that without make some custom Current possible solution to replace

  1. Overriden class/method to replace
  2. Replace image with same name in theme/folder module/themes (but can't change directly file extension gif) in case we want to use another file(svg)

    Examples

https://i.imgur.com/13Yvf66.png File path lib/internal/Magento/Framework/View/Result/Page.php https://github.com/magento/magento2/blob/2.4-develop/lib/internal/Magento/Framework/View/Result/Page.php#L257

Proposed solution

Should have another way to allow replace icon file with another file in my opinion loader should define in view layer (phtml for example) instead place in side php

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @mrtuvn. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Hotel commented 1 year ago

Hello @mrtuvn,

Thanks for the reporting and collaboration!

We have looked into the below file:

https://github.com/magento/magento2/blob/647b34eb3d8bc13c02adca1262aaab389dec1324/lib/internal/Magento/Framework/View/Result/Page.php#L257

and found that the path of the 'loader-2.gif` file is hard coded. Hence confirming this issue for further processing.

Thanks

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-8019 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.