-
Notifications
You must be signed in to change notification settings - Fork 305
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
Border spinner while loading #5044
Comments
The spinner is created using the following CSS: .wt-ajax-load:empty {
height: 32px;
width: 32px;
background: url(images/loading-32x32.gif) no-repeat;
} Google provides several examples of using CSS to create spinners. I would have thought it was pretty straightforward. |
Sure, I understand that. I don't think I was clear enough with what I meant. |
For example, replacing this row with the following code will produce nice looking spinners: Bootstrap:
Fontawesome:
But there would be a lot of places to change and is much more code than today. Can you think of a neater way to utilize one of the bootstrap or fontawesome spinners? |
I think I prefer the font-awesome icon to the bootstrap icon. We could create it as an icon file - the same as our other icons. This would also allow themes to provide their own spinner - as themes can replace any of our "view" files. There are about 15-20 places in the code where we would need to add it. e.g.
|
I think I prefer the font-awesome icon to the bootstrap icon. We could create it as an icon file - the same as our other icons. This would also allow themes to provide their own spinner - as themes can replace any of our "view" files. There are about 15-20 places in the code where we would need to add it. e.g.
But there's also some code that requires an empty There are also smaller versions of the same GIF icon. e.g. the interactive tree uses one when it is loading. |
I started on a branch here and did the easy ones. But as you mention, some cases are not as simple. |
Would it be possible to replace the GIF loading symbol from the supplied themes with a border spinner instead?
Bootstrap has a rotating border spinner included which use currentColor as border.
https://getbootstrap.com/docs/5.3/components/spinners/
This would enable easy styling for different color schemes.
I did a small try myself but failed, as the whole content started spinning :).
Maybe it's more work than what is worth, just wanted to raise the idea.
The text was updated successfully, but these errors were encountered: