-
-
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
[5.3] Replace dialog GIF loader with Custom Element #44232
base: 5.3-dev
Are you sure you want to change the base?
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. |
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