[6.0] Replace dialog GIF loader with Custom Element#44232
[6.0] Replace dialog GIF loader with Custom Element#44232C-Lodder wants to merge 3 commits intojoomla:6.0-devfrom
Conversation
|
You could also use import maps here but this is also fine for me |
|
It was made with pure CSS with purpose to allow custom loaders. |
|
@Fedik I changed the Custom Element to use SVG over CSS, cause resizing the CSS one was an absolute nightmare. Either way, this simply implements the loader that's used everywhere else in Joomla, rather than using the outdated GIF, that doesn't look great in dark mode. |
|
I have tested this item ✅ successfully on 47d29db This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44232. |
|
@C-Lodder Could you check the two linter errors reported here? https://ci.joomla.org/joomla/joomla-cms/79575/1/20 Thanks in advance. |
|
@C-Lodder I agree that the gif on black backround looks ugly, Need to find a better solution. |
|
Can you rebase this one to the 5.3-dev branch? |
|
@laoneo done. @Fedik Whether the loader is instantiated via CSS class or Javascript, both are couple to something. With CSS, it's coupled to the template. With JS, it coupled to the dialog web component. Both can be overridden. Either way, happy to close if anyone would like to provide an alternative, or keep the current icon. |
|
I have a hint:
Hold on for now, I will look what else can be, when will get some time. |
|
This pull request has been automatically rebased to 6.0-dev. |
|
@Fedik - have you had a chance to think of a new/better solution/option? |
|
No, I forgot 😄 |
|
There is #45097 |
|
Thanks @Fedik, I will go test it now... |
|
Okay, that PR was merged, I close this one. Thanks. |
Summary of Changes
This PR replaces the GIF loading icon used within dialogs, with the Custom Element.
Testing Instructions
Note: This cannot be tested with Patch Tester!
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
cc'ing @Fedik @dgrammatiko