Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
D7 has a misc/throbber-active.gif
that was animated.
The D8 core/misc/throbber-active.gif
is no longer animated. No idea why.
Proposed resolution
Add a working throbber with the correct padding for RTL and LTR
Remaining tasks
User interface changes
Yes, the throbber icon become animated and rolling...
API changes
None
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#27 | rtl throbber.png | 54.91 KB | alexpott |
#27 | ltr throbber.png | 59.74 KB | alexpott |
#27 | 2642362-27.patch | 3.53 KB | alexpott |
#26 | 2642362-26.patch | 1.72 KB | alexpott |
#11 | animation_of-2642362-11.patch | 3.45 KB | chrisfree |
Comments
Comment #2
hass CreditAttribution: hass commentedComment #3
hass CreditAttribution: hass commentedI tried creating a binary git patch, but EGit seems to have issues here. As the correct file is attached I'm just setting CNR as a core committer can just copy it in the folder and commit.
Comment #4
hass CreditAttribution: hass commentedComment #5
TR CreditAttribution: TR commentedUpdating title spelling so this issue is found by search.
Comment #6
Manjit.SinghDont know why previous one is not working, I have added a new one, copied from D7. This is working fine. Please test it.
Comment #7
hass CreditAttribution: hass commentedThere is one more file with the same name in "stable" theme that also need to be updated.
Comment #8
droplet CreditAttribution: droplet commentedIt seems it was tried to add some pixels to the left of the icons.
Off topic: Any good docs about "stable" theme, I feel annoyed about it to do things twice. While it's stable and patching stable. It's a bit crazy to me.
Comment #9
hass CreditAttribution: hass commentedStable icon is missing
Comment #10
chrisfree CreditAttribution: chrisfree commentedI'm having a look at this right now.
Comment #11
chrisfree CreditAttribution: chrisfree at Chromatic commentedAttached is a patch that replaces the Drupal 8 versions of
throbber-active.gif
with that from Drupal 7. This includes both the instance found incore/misc/
as well as that of thestable
theme.This is a temporary fix to restore the animation to the .gif currently in core. Thankfully, there is considerable work being done to replace this graphic entirely with a modern approach over here: #1974928: Update throbber icon.
Comment #12
chrisfree CreditAttribution: chrisfree at Chromatic commentedComment #13
jwilson3IIRC, The icon that was committed two years ago seems to have disabled spinning for performance purposes:
#1891764: Autocomplete throbber causes excessive CPU usage on some browsers
#1069152: Throbber in textfield is misaligned when browser hardware acceleration enabled (gfx)
Similar but not directly related: #659486: Add back the "loading" image to the Overlay in a way that does not kill performance
Mentioned this on #1974928-54: Update throbber icon.
Not sure if this was purposeful, or actually accidental. The issue #1069152 seems to describe that the whole purpose of splitting the images apart was so that one could be animated to avoid performance issues... but the actual code that got committed wasn't animated (confusing).
If it turns out that this was infact purposeful, then i would love to see effort and resources on this issue instead going towards hi-dpi compliant SVG rather than perpetuating oldskool GIF animations (I consider this to actually be a distraction from getting the modern SVG solution in sooner). Check out and participate in #1974928: Update throbber icon if this interests you.
Comment #14
hass CreditAttribution: hass commentedI tried to apply this patch, but it's not working. The images are corrupt than. I'm not sure if this is a Eclipse EGit issue.
Comment #15
droplet CreditAttribution: droplet commented@jwilson3,
Nope, it was correct GIF.
the current bug introduced in #2329649: Fix node create page RTL CSS
Comment #16
chrisfree CreditAttribution: chrisfree at Chromatic commented@hass the patch seems to apply cleanly for me. Guessing this is a binary issue or an OS issue?
As for the issue at hand, while I agree that our efforts should be on modernizing our throbber animation, I'd say that getting the current animated GIF fixed (animated) would be a good thing in addition to the work that needs to occur over in #1974928: Update throbber icon. This change is a much more discrete set of changes and I can foresee the SVG work taking a bit longer to implement. FWIW I'm trying to do my part and get that wrapped up as well.
@droplet @jwilson3 what do you guys think? Should we move forward with fixing the animation here AND try to wrap up #1974928: Update throbber icon OR just focus on #1974928: Update throbber icon? If we're saying the former, what needs to happen here? As of now, I'm confused as to what (if anything) needs to occur. If we're saying the latter, should we close this and mark as "Closed (won't fix)".
Comment #17
droplet CreditAttribution: droplet commentedJust tested (both ltr & rtl). It's worked.
Comment #18
jwilson3Comment #19
jwilson3@chrisfree: It's rtbc now (thanks droplet!) so I guess no harm having it go through the motions at this point.
Comment #20
alexpottSo given that #2329649: Fix node create page RTL CSS was all about rtl support - how about some rtl screenshots so show we haven;t regressed there.
Comment #21
hass CreditAttribution: hass commentedThis image is a circle. It is both the same in ltr and rtl. We have not changed css, just two images. If something wrong with position this is a new case.
Comment #22
alexpott@hass the current image from D8 is 17px wide and the old image is 15px this is because the D7 image has 2px of padding on the left but not on the right. Whereas the D8 image tries to have 2px on the right as well. Imho adding padding as part of the image is a problem. Yes the throbber should work BUT it should also look good on RTL as well.
Comment #23
alexpottAlso the previous image changed inactive throbber image as well so not changing here would result in RTL weirdness - let's just do the right thing and either make the 17px version work or make a version with no padding on either side and add padding correctly using CSS.
Comment #24
chrisfree CreditAttribution: chrisfree at Chromatic commentedYes, we should use the animated version of the throbber from D7 (no padding embedded in the image) and ensure that this works on both standard and RTL. I should have some availability tomorrow to try and fix this up.
Comment #25
alexpott@chrisfree unfortunately the D7 image has 2px of padding on the left. Hence #2329649: Fix node create page RTL CSS which tried to add 2px of padding on the right. I think the reason the image has padding is because the image is often floated. So the right thing to do is to add the 2px imo.
Comment #26
alexpottSo looking at the D7 image in more detail the padding is on the right... here is an image with 2px of padding on the left and the animation still working...
Comment #27
alexpottOpps forgot stable and here's the screenshots too...
Comment #28
swentel CreditAttribution: swentel commentedScreenshots look good, let's do this.
Comment #29
chrisfree CreditAttribution: chrisfree at Chromatic commentedLooking good! Tested the patch locally with LTR and RTL themes.
Comment #30
alexpottComment #31
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!