-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bug: Loading spinner on Safari #2570
Comments
I can reproduce it on daisyUI site.
In my case is problematic, because when app make some internal browser url redirects the spinners won't work on next screens, like button spinner on forms. daisy.mov |
Interesting… That's definitely a Safari bug. I tried to see if changing the order of CSS rules ( I will research more to find a way for it. |
@saadeghi Yes I tried it. But, bug remains when I inject class at runtime with some JS. <span class="<inject 'loading' after some action> loading-spinner loading-xs"></span> |
what if you inject both |
@saadeghi Same issue. Here is a snippet
<span id="spin" class=""></span>
<button onclick="document.getElementById('spin').classList.add('loading', 'loading-spinner')">run</button> |
Can we consider this is definitely a Safari bug without any workarounds for now ? |
It is a Safari bug. I hope it gets fixed in the next Safari update 🤞 |
I can confirm that this is still a problem today. The spinner:
Does not animate at all in Safari (both desktop and on iOS), and just the first bit of the loading icon is rendered. What is weird is that the animations works as expected in the docs page at https://daisyui.com/components/loading/ . Does anyone know why this is happening? |
A simple workaround is:
Where the image is: https://github.com/n3r4zzurr0/svg-spinners/blob/main/svg-css/ring-resize.svg I'm not sure if the SVG does something different, or if the url instead of inline fixes it. Either way it works. |
@scosman In my case unfortunately I can't use this workaround. |
Over a year later maybe worth a library level patch? Safari team doesn't seem to think this is a priority. |
@scosman Yes! For daisyUI 5 loading animations will be using svg animations instead of inline CSS animation inside a encoded svg, which fixes the issue. I will add a patch soon to fix it in daisyUI 4 as well |
Awesome, thank you! |
What version of daisyUI are you using?
4.4.4
Which browsers are you seeing the problem on?
Safari, Safari iOS
Reproduction URL
there is no ...
Describe your issue
Just notice on builded version this issue happens (
yarn build
).But not happens with dev version with
yarn dev
.Am I missing something?
spinner3.mov
The text was updated successfully, but these errors were encountered: