Problem/Motivation
The default AJAX progress throbber icons looks poor on a retina display.
throbber-active.gifis a low resolution animated GIF.throbber-inactive.pngis a low resolution static
PNG.
Note: some instances of .ajax-progress-throbber currently reference throbber-active.gif, while others reference loading-small.gif. loading-small.gif is being worked on in a separate issue #2575253.
Proposed resolution
- Replace
throbber-active.gifwith a high resolution animated SVGthrobber-active.svg. - Replace
throbber-inactive.pngwith a high resolution static SVGthrobber-inactive.svg. - Maintain existing image size, color, and animation speed from the originals.
- Replace references to each file in core ajax-progress and autocomplete stylesheets.
- Replace references to each file Stable theme.
- Redirect old GIFs to new SVGs in core's bundled .htaccess file.
Codepen for before/after comparison:
https://codepen.io/jameswilson/full/LYoZaXy
Before:
After:
Inactive: throbber-inactive.svg
Active: throbber-active.svg
Note: server limitations on uploading SVGs and/or rendering images from git.drupalcode.org prevent us from displaying the proposed SVGs inline here. See the Codepen for a better comparison.
Remaining tasks
Ensure that overriding throbber's is as easy as possible and provide instructions for how themers can use libraries-override.
COMPLETE: (See Docs → Theming Drupal → Update the throbberOverride core's default throbber design in the Olivero theme, to help document an approach for themers to follow.
COMPLETE: (See Olivero's throbber.svg).Create a patch.- Review the code changes.
- Manually test and upload before/after screenshots.
- Since Seven was removed from core, copy issue credits from folks who worked on #2775725: Update the throbber icon that was split out from this issue while Seven theme was still in core.
User interface changes
Users on devices with high resolution screens will see a crisp image with no diffusion artifacts or blur inherent from legacy image formats.
Users on devices with low resolution may or may not notice much of a visual difference.
API changes
In as much as images can be considered an "API", the old GIF files will be removed. In case any themes still reference the old images, the routes to these static assets can be redirected at the server level to the new SVG assets. Such redirects have been added to the .htaccess file shipped with Drupal core.
| Comment | File | Size | Author |
|---|
Issue fork drupal-1974928
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 11.x
compare
- 1974928-throbber-svg
changes, plain diff MR !8172


Comments
Comment #1
Snugug commentedCan we replace it w/an CSS3 animated throbber? That'll look good everywhere.
Comment #2
jon pugh+1
You don't need a "retina" display to know this is true!
Comment #3
ruplDon't forget about SVG!
Comment #4
jon pughprint theme('throbber');Oops! That won't work... forgot we were talking about Drupal 8!
;)
Comment #5
lewisnymanCross posting #2091939: Add the loading throbbers to the Seven style guide
I'm really keen on #1847916: Replace the ajax-progress-throbber div with a class but we wouldn't be able to animate pseudo elements with CSS. It would be great to throw some ideas/inspiration around.
Comment #6
jwilson3It seems to me that the reality is that the most versatile solution is to provide two animated gifs as a css background image, one twice the size of the other targeted to browsers and devices that need higher res versions using a combination of media-queries and
background-size.On #2032773: Use Libricons (icon font) in Seven, consider using it more broadly in core, someone throws out that they should add a throbber to the icon font being worked on by ry4n, but from what I can tell, getting the placement right is extremely challenging to do (but this shouldn't stop us if it is in fact possible). Has anyone really seen a perfectly placed throbber glyph in an icon font that rotates with zero noticeable axis alignment issues, even at a large font size of say 100px?
Comment #6.0
jwilson3Updated issue summary.
Comment #7
lewisnymanComment #8
jwilson3As @rupl mentioned in #3, SVG might be the better solution. and according to http://caniuse.com/svg, everything that Drupal core supports is also supporting SVG.
Something like this SVG throbber used by Google Chrome:
http://plnkr.co/8J9s84ZH24OodIx75L5k
Comment #9
jwilson3I've updated issue summary. At this point what needs to happen next is some cross browser testing of the
<animateTransform>tag in an SVG, to ensure we don't have any breakage across an array of the supported os-platforms/browser-versions/devices.Comment #10
joelpittet@jwilson3 I did a BrowserStack test on that link above and it doesn't animate on IE9-11 on Windows 7 unfortunately.
Also here's reference saying it's not supported from the source:
@see http://msdn.microsoft.com/en-us/library/ie/gg193979%28v=vs.85%29.aspx#ex...
And
@see http://caniuse.com/#feat=svg-smil
Maybe there is a nice CSS3 rotate that can work well or in the link above they have a decent requestAnimation frame javascript to rotate the svg, is that an option? You may need a IE9 polyfill for these:
@see http://caniuse.com/#search=animation
Comment #11
jwilson3I ran the requestAnimation frame javascript example (http://samples.msdn.microsoft.com/workshop/samples/svg/svgAnimation/basi...) through BrowserStack, and it failed to animate on IE9.
On the other hand, as long as we're talking polyfills, there is http://leunen.me/fakesmile/ which did work on IE9 -- but was seriously slow to load.
I feel like we should be courteous to the non-compliant browsers and give them a gif fallback, since CSS animation itself doesn't work in IE9 or earlier.
Comment #12
joelpittet@jwilson3 I'm not sure who to talk to on getting another polyfill in there but I'm game for that. Since SMIL is in the SVG maybe we can do a gif fallback instead of the polyfill, do we have any .lt-ie10 style html classes to target that animated gif?
Here is a quick little snippet for SASS and svg I put together for a D7 site if anybody want's to play:)
https://gist.github.com/joelpittet/c75ff7c2f86282ff9499
Comment #13
jwilson3Yeah, I'm sticking with my feeling that a polyfill is the wrong solution in this case.
As for an lt-ie10 class, we don't have that, but do have the conditional functionality built into drupal_add_css. SMIL isnt supported in IE 11 either, so this would have to be lte-ie11.
The only other browser that has problems with SMIL is Opera Mini. :'( I haven't thought of a proper solution that will work in that case yet.
Tangentially, I took your gist and ran with it to make a couple small improvements: https://gist.github.com/jameswilson/d40d303c9cf24051d332
Comment #14
jwilson3I think the only solution really is to use Modernizr tests for smil and svg, which would address both opera mini and IE support.
http://modernizr.com/download/#-smil-svg
^ this is a progressive enhancement to SVG, instead of fallback to GIF, we could do it the other way around too. Not sure which is better and the final solution depends on minimizing the effect of modern browsers downloading *both* assets as opposed to just the one that it needs (ie, the tax on double asset download should, in this case go to non-modern browsers).
Currently, the version of modernizer in Drupal core does not test for smil or svg, so we'd need to add that, however I don't think this is a bad idea. Given the direction svg is going right now as the defacto solution to high-quality web graphics for retina display and zoom, many themers will want to have that test around anyway, and having it there by default could be great.
./assets/vendor/modernizr/modernizr.js:2: * Build: http://modernizr.com/download/#-inputtypes-touch-cssclasses-addtest-test...
EDIT: updated classnames to reflect comment below.
Comment #15
lewisnymanBut it's not SVG support that's the problem is it? It's a specific feature within SVG? We can't just use CSS animations here?
Comment #16
joelpittetThe class name I think would be
html.svg.smil .is-throbbingor justhtml.smil .is-throbbingwould likely do the trick, no?http://modernizr.com/docs/#smil
Comment #17
jwilson3Yes, sorry for the confusion... i meant "smil" instead of "animate" for the classname on the html element. I edited the example code in comment #14 to reflect that.
Yes it would, I thought html.svg.smil is clearer.
Comment #18
jwilson3Correct.
Yes, good point this could be possible. Here is a little investigation on CSS animation vs SIML:
-webkit-animationvendor prefixes for CSS animations, meaning duplicate code (which could get ugly for non-trivial animations with multiple keyframes). OTOH, a simple rotation throbber in CSS-animation wouldn't need *too much* extra code.background-imagein CSS. The consistency and loose coupling promised here is really the primary selling point from a maintenance perspective. This also means we could still use css a single image file both the not-throbbing version AND the throbbing version and use background position to pull the animation into view, like how core's GIF does right now on auto-complete fields, thus incurring no extra HTTP requests through this issue.There are some good write-ups comparing the two solutions, from a more technical perspective here and here for anyone interested.
Comment #19
ckrinaWorking on that.
Comment #20
ckrinaHere is a first approach to that.

We were talking about adding the svg files as background images and just rotate them with css, instead of using SIML animations. The problem on that is that I think there is no way to rotate only the background image and not the element without using pseudo elements.
So I’ve uploaded a patch with a SIML animation in the active throbber, and at least we have the svg files here so can discuss that.
That is how it looks:
Another thing that needs work is IE9 back port.
Also, just to point that the inactive throbber is using the #949494 because of accessibility reasons.
Comment #21
ckrinaUnassigning.
Comment #22
ckrinaI've also tried to use :before or :after elements to move the throbber image with css animations, but inputs don’t work with them. I didn’t know, but those pseudo elements are only allowed to be used on a container element. You can read about that here. (But there’s anything on the W3C recommendations).
So, maybe the best option is using animation inside the svg files. And for those browsers that don’t support it we’ll still have the color change on the active state. Here is an screenshot for IE9, that doesn’t support it.
Comment #23
ckrinaHere is the screenshot.
Comment #24
droplet commentedRemember that CSS animations doesn't working in IE9 (keyframe..etc). The only way I think is apply JS to rotate the SVG BG image.
And the SVG could be sprite image. (in the past, we splited GIF into two files for performance problem)
Comment #25
lewisnymanI had a look over this with Bojhan and it looks good, but the size of the icon is a little too big for the text field. I think we need to add this new loading icon to other areas of the site now.
Comment #26
lewisnymanIt looks like loading-small.gif is referenced in:
We should be able to remove loading.gif and loading-small.gif in this issue
Comment #27
ckrinaOk, then I'll work on that.
Comment #28
joelpittetWon't give up yet but SMIL has no support in any version of IE:( There has got to be a work around here.
If we find a solution where IE9 just gets a color change without the animation but IE10 and up work, I think most of us would be happy with that solution it seems when talking to others at the conference. Speak up though if that's unacceptable for a good reason.
Maybe we can embed CSS animations in the SVG to do the animation which seems to be what IE was betting on in their short sighted decision to not support SMIL.
Going to play around, just thought I'd share my thoughts. Vectors for the scalable win!
Comment #29
joelpittetHaven't cross browser tested this yet, but that idea:
http://jsfiddle.net/0ms01h7b/
Maybe @ckrina if you have access to IE browsers or know someone who does you could give it a try?
Comment #30
ckrinaBad news again... There are some troubles with Firefox. If you intert the svg in the HTML it works great, but adding it as a backround image with this styles inside doesn't seem to work: is doesn't rotate.
And it's the same in IE9 and IE10: the throbber doesn't rotate as a backround image.
Comment #31
joelpittetDang, well thanks for testing that @ckrina.
Hmm may need to come back to this.
Anybody feel free to share some code, something is bound to surface:)
Comment #32
ckrinaHere is a patch with smaller icon, as @LewisNyman suggested on #25. Maybe it's not the final solution but at least we have the svg files uploaded. Here is the screenshot:

@LewisNyman: When you said that we should be able to remove loading.gif and loading-small.gif in this issue, did you mean changing the design that we are using now by this svg or moving to svg the current design? The current design is this one:
Comment #33
brunodboI played around with animating the throbber in JavaScript, based on http://msdn.microsoft.com/en-us/library/ie/gg193979%28v=vs.85%29.aspx. Code needs work, but I thought I'd post it in case other people want to further explore this route.
http://jsfiddle.net/1qgp8xzu/
Comment #34
lewisnymanSorry I haven't been too active recently, I think we can get away with changing the design because it's almost required to achieve what we want.
Comment #35
axe312 commentedHiDPI is the official name for screens with a higher resolution per inch. Retina is just a word created by Apple for this. Thats why I changed the tag.
Comment #36
jwilson3.
Comment #37
jwilson3Whoops.
Comment #38
wim leersComment #39
joelpittetSo rotating the SVG as a background is a show stopper for IE as they don't support SVG animation via SMIL. See #33.
We have one viable direction:
CSS3/JS rotation of an element outside of the input (which could get tricky for positioning correctly).
Anybody want to take a stab at prototyping this on an input field?
Comment #40
joelpittetHere's a Fiddle to start a prototype for people to play!
Needs to work cross-browser. Maybe IE9 can get a fallback?
http://jsfiddle.net/65wpyowp/
Comment #41
wim leers#40: that doesn't rotate in Chrome?
Comment #42
joelpittetIt's un-prefixed, just a quick prototype. Auto-prefixer for anybody that wants to run with it.
Comment #43
wim leersOk, cool :) Sorry for the distraction.
Comment #44
jwilson3The fiddle in #40 is pretty good, but the SVG can be optimized a bit further to shave some needless bytes.
The decoded svg in #40 is:
Which can be reduced to:
Comment #45
ellizard commentedadd svg/gif icon for loading. svg icon - in zip archive
Comment #47
ellizard commentedadd gif/svg images
Comment #48
manjit.singhtriggering test bot.
Comment #50
jwilson3The patch in #47 is a patch on top of the patch in #45, and will never apply cleanly.
Besides that, I don't understand the point of the patch in #45 which uses an animated SVG since we've already established in #39 that animating SVGs are not supported in IE.
Even if there was a way to test for no-smil and fallback to a gif, this would still be less desirable than using CSS3 rotations. Modern IE supports CSS3 rotations and SVG, so we should try to leverage that, instead of forcing the gif fallback because of no SMIL support.
Let's shoot for a CSS Rotation solution first, and then work out appropriate fallbacks.
Comment #53
jwilson3This issue needs to refocus around the D8 ajax progress throbber icon (throbber-active.gif) as stated in the issue title. The patches in #45 and #47 were for the "loading" icon, for which I've created #2575253: Update loading icon and use SVG. I'd be happy to properly review the patches above if @ellizard would like to move them to that issue so that he gets credit for the work. You may want to address my points mentioned above first though, including the fact that we cannot use SMIL (ie the
<animate>functionality because it is now deprecated from Chrome, and not supported in IE).Comment #54
jwilson3There are 2 ways the ajax progress throbber image is currently used in core:
* As part of additional DOM elements that are dynamically added during ajax requests. These DOM elements can be rotated with CSS.
* A background image added to autocomplete fields'
<input>tag. These cannot be rotated as-is with SVG and CSS rotation/animation. More importantly, the current throbber-active.gif image committed to Drupal 8 two years ago to replace throbber.gif is surprisingly no longer animated. See #1069152: Throbber in textfield is misaligned when browser hardware acceleration enabled (gfx).I recommend the following path to move forward:
1) avoid loss of current functionality, add HiDPI support and new shiny redesigned throbber. Replace the old static GIF with the newly designed SVG
as a static (non-rotating) background image for autopopulating form fields. Add CSS to animate/rotate the SVG when shown using the .ajax-progress-throbber .throbber DOM elements.
2) file a follow-up to add back support for rotation functionality to the form autocomplete field. We could actually reopen and leverage #2181399: Consider moving the animated .GIF throbber outside the autocomplete fields and using CSS animation instead. (proposal by sun) for that purpose. (That issue was closed by Lewis opting for the simple class based state change #1847916: Replace the ajax-progress-throbber div with a class but I think it makes sense to reopen and revisit).
I'm going for the simple patch to move this forward: I've removed the throbber GIFs and optimized the second SVG from Comment #44 above to optimize it and round to 2 decimal places of accuracy instead of 3 (there is no perceived loss of quality). This also required slightly changing the throbber-inactive.png (and converting it to svg).
Before:

After:

New SVG code:
Comment #55
aburrows commentedUpon testing it, it does add the svg, however there is no animation. I'm guessing we want an animation of the arrows spinning?
Comment #56
jwilson3Comment #57
jwilson3Comment #58
jwilson3Here I've added the CSS rotation with an "is-throbbing" class and improved how the throbber works inside dropbuttons.
To test this, you can check that the spinner works on the following pages:
Collapsed
Expanded
Comment #61
jwilson3Looks like excluding the binary details of the image files being deleted made the patch in #57 invalid; here is a reroll with all the binary data glory.
Also, here is a little screencast gif I recorded demonstrating the new throbber in action.
Comment #62
jwilson3Comment #63
corbacho commentedGood work James
I didn't have time to go through this patch/issue. I will try to review later properly.
But I noticed file /core/modules/system/css/components/autocomplete-loading.module.css lacks CSS animation.
Patch #61 was not applying, rerolled attached.
Comment #64
jwilson3@Corbacho: Thanks!
Regarding non-animation of autocomplete, I think this should be handled in a follow-up. Please read My comment #54 above, which explains it all.
Comment #65
hass commentedAs this patch has not committed in-time, can someone RTBC #2642362: Animation of throbber-active.gif image is broken to fix the current icon, please?
Comment #66
hass commentedAside, the
is-throbbingclass used here is currently namedui-autocomplete-loading, but I like the new name. However it may require some cleanup that is not inside this patch.Comment #67
hass commentedComment #68
chrisfree commentedIn fixing #2642362: Animation of throbber-active.gif image is broken I stumbled on this thread. The latest patch applies cleanly but since the
Stablewas made the default base, these changes needed to be applied there as well. The attached patch takes care of replicating the existing proposed changes over on the Stable side of things.As a side note, in
ajax-progress.module.cssthere is also a "Full screen throbber" section. This uses another animated .gif that might also be worth updating to SVG for the same reasons we're altering the throbber. I'd propose to do that in a separate issue, however.Comment #69
jwilson3Cant really make sense of what changed, your interdiff didnt seem to actually show the differences.
Comment #70
chrisfree commented@jwilson3 sorry, this was my first time attempting an interdiff. I thought I had done it right, but I'll try again. Basically, I duplicated your changes within the
stabletheme. I'll push up a new interdiff here shortly. Stand by.Comment #71
chrisfree commented@jwilson3 actually, I think my interdiff is correct. I followed the steps found here and the resulting file was exactly the same as my previous. Perhaps this is confusing because the changes are identical but are now also occurring within the Stable theme? There weren't any changes to those that you and @corbacho applied but those were simply replicated in the equivalent files within Stable.
So changes you made in
/core/miscwere also made in/code/themes/stable. Does that clear things up? Or am I missing something?Comment #72
hass commentedThe gif/png images need to be kept at least until D9.
We may safe one http request by adding both svg images into a svg-stripe-set as symbols.
Comment #73
joelpittetWe can move the improvements to Bartik/Seven though they are free to change up for 8.1.x
Comment #74
jwilson3@chrisfree: ok, i see... missed that from your comment in #68. Thanks for the clarification.
The interdiff is really confusing, this line tripped me up, and i dont understand it:
Corbacho's code:
Your code:
Interdiff (wat?):
Comment #75
chrisfree commented@jwilson3right? I spent way too much time trying to sort that out too. It makes literally zero sense. Otherwise the patch looks fine, eh?
Comment #76
jwilson3Yes. its good aside from that, now that i actually looked to see /stable/ in the paths that changed ;) Pardon my misunderstandings, banter and general distractions.
Comment #77
chrisfree commentedActually, I think we need to keep the older versions of the files instead of deleting them. I think that is what @haas is saying. So a revised patch that doesn't delete them might be in order. I could see instances where other developers might be using those paths in other contexts.
Comment #78
chrisfree commentedFinally getting around to recreating this patch such that it does not delete the existing gif/png files. Patch to follow shortly.
Comment #79
chrisfree commentedUpdated patch and interdiff. This patch should do the same as the previous, only it does not delete the existing core imagery related to throbbers.
Comment #80
markdorisonPatch in #79 worked for me in testing.
Comment #82
droplet commentedthe new icon is ugly. no IE fallback ?
Comment #84
chrisfree commented@droplet: I'm confused. Are you saying that this animated SVG is ugly?
Or are you saying that you are seeing something else?
As far as an IE fallback is concerned, SVG is supported back to IE9 and CSS animation is supported back to IE 10. Without being animated, we should still see the SVG. This is a reasonable fallback in my opinion.
Comment #85
droplet commentedI'm not keen on it anyway but if we wanted to support it. We can detect it from JS side and add a class name to toggle it.
I believe we didn't need these 2 prefix.
Comment #86
hotpizzas commented@droplet: Drupal 8 doesn't support IE8, so why worry about an IE fallback when IE9 supports SVG?
Comment #87
droplet commented@hotpizzas,
IE9 doesn't support keyframes. We can't call SVG is fallback.
No radius corners in IE is make sense, it's a basic visual change. Drop anime in a Loader icon, it's a UX problem. Is it loading ? or disconnection ?
GIF is bad, but not that bad at many case in most sites. I'm now using Macbook Retina to post. I think the GIF icon shown on this page is acceptable and better than a still image in non-retina IE9 screen.
If we all think IE9 is worthless, Let's announce it in public. It's very bad to kill IE9 silently but official said it's still supporting for marketing purpose.
Comment #88
jwilson3Is modernizr feature detection for cssanimations a dependency we could add?
OR
Comment #89
nandasoftware commentedComment #90
nandasoftware commentedComment #91
soumyajit.basu commentedChecked. The throbber is appearing correctly with the new icon. Checked with the scenario as mentioned above. Please check the attached screenshot.
Comment #92
star-szrThis would be a slight BC break for Stable/Classy but I think it might be justifiable in 8.1.x. I'd like to give it some more thought and testing though.
In the meantime…
Minor: Two spaces after colon. Applies to the Stable version of this file as well. Leaving at RTBC because it's very minor :)
Comment #93
gauravjeet commentedChanges as per suggestion in #92.
Comment #94
gauravjeet commentedTriggering the test bot
Comment #97
star-szrDiscussed this issue with @xjm and @effulgentsia.
The safest bet here would be to not make these changes in Stable and Classy because of the BC break and only change core, Bartik, and Seven.
We can then provide instructions for how themers can use libraries-override to get this shiny goodness into their themes. Seem reasonable?
Comment #99
jwilson3Re #97, what precicely is unsafe about swapping a gif with a rotating svg?
Could you expand upon the BC (backward compatibility? i presume) break?
Comment #100
star-szr@jwilson3 the CSS changes, for folks who have overridden the spinner CSS we are changing things from underneath them.
Comment #101
jwilson3@Cottser: Ok, does that mean #2405059: Update Drupal's default menu icons to use SVG also needs to be bumped to 8.2.x?
Comment #102
tstoecklerComment #103
ckrinaTrying another patch without Stable changes.
@Cottser when you said to provide instructions, you mean in the code itself as comments?
Comment #104
mgiffordI haven't looked at at the latest patch, but really like the examples in #2575253: Update loading icon and use SVG nice to revision the throbber..
Comment #105
ckrinaAlthough I also like the other icons, the idea on using the suggested one was that even if it can't be animated (old IE & friends) it can be interpreted as an "update" or "loading" action anyway.
Comment #106
wim leersI like it!
Comment #107
aburrows commentedCan we get this decided and closed off at Drupalcon?
Comment #108
Bojhan commentedGoing to put this back to RTBC. Looked like Coster was onboard already without the Stable break, looks like this removes that issue.
Comment #109
alexpottAssigning this to @Cottser
Comment #111
star-szrIt was a migrate test fail, putting back to RTBC :)
Comment #112
star-szrYup this is looking much better, thanks @ckrina! What I would love to see here before committing is bringing the SVG version into Seven and Bartik for all throbbers, not just the dropbutton one.
One other idea along the lines of #97 would be to include a small library and CSS file for SVG throbbers in Stable and not load that library from Stable, only load it from Bartik and Seven via libraries-extend. This way any theme can pull in this "Throbber SVG-ify" library. Any libraries we add to the Stable base theme this way would have to remain stable once they are in. I think of it as an API addition to Stable so I think these types of changes would have to happen in minor versions not patch versions.
Minor: Extra space after colon here (two instead of one) per https://www.drupal.org/node/1887862#properties and as mentioned in #92 (#93 didn't provide an interdiff, but also didn't fix it).
Comment #113
manjit.singhremoved extra space and added interdiff.
Comment #115
gábor hojtsy#2775725: Update the throbber icon started independently to implement the Seven styleguide spinner. We should figure out which one to bring forward. Discussed this on the UX meeting today.
Comment #116
mustanggb commentedFWIW I think the spinner from #2775725: Update the throbber icon looks a lot nicer.
Comment #117
marameodesignI'll personally believe #105 has a great point.
Comment #118
lauriiiI discussed today with @ckrina and @alexpott and we agreed that we should change the approach taken on this issue.
The approach that we agreed on:
The reason why we want to do so is because:
Comment #119
ckrinaI'll work on that.
Comment #120
ckrinaI'll work on this.
Comment #121
ckrinaComment #122
gábor hojtsyCan we try to not work on this one and #2775725: Update the throbber icon in parallel and choose one path instead of two parallel paths wasting our time? :) Please :)
Comment #123
ckrinaNo problem! We can come back to this one when #2775725: Update throbber icon in Seven theme is finished and decide if design or anything else needs to be readjusted for Bartik.
I change the status to Postponed until the other one is finished.
Comment #131
ressaThere has been great progress with updating the throbber icon in the new Claro theme #3087950: Progress throbber position is incorrect, so adding here for reference.
Comment #138
jwilson3Regarding why this was marked postponed, #2775725: Update the throbber icon is dead. The Seven theme has been removed from Drupal 10 core.
I see Olivero now has a custom throbber.svg but it is not a 1-to-1 against the old original throbber-active.gif.
On this issue's sister issue #2575253: Update loading icon and use SVG, after flailing about for a long time, the consensus became to reduce scope and get to RTBC by making the replacement a 1-to-1 (same size, color and speed). I think it makes sense to do exactly the same thing here.
The old throbber-active.gif is still referenced in core by stable9 as well as core's default ajax-progress and autocomplete-loading CSS files, so there is good reason to get this updated, and the scope is tight.
Comment #139
jwilson3I put together a codepen to compare side-by-side before/after with a fairly close 1-to-1 (speed, color, size).
I've included a second option where style is slightly different, modernized, and perhaps less "drupaly feeling".
https://codepen.io/jameswilson/pen/LYoZaXy
Comment #141
jwilson3Comment #142
xmacinfoI prefer the original throbber (SVG rendered). It looks like a single-hand clock.
The main question being, though, can the themer change the throbber color or better yet, use her or his own SVG file?
Comment #143
jwilson3Yes! This is actually one of the primary reasons this issue was postponed some time ago: i.e., in order to create an overridden/custom throbber in another core theme. See @laurii's comment #118, point 2.3
👍. I actually feel the same. Now that it is fairly easy for themers to override the throbber and we have an example in core already, it may be less contentious to leave the existing design as a nod to the past and a relic of our roots, as well as just a simple fact of getting to RTBC sooner.
Comment #144
smustgrave commentedMR appears to have test failures.
Also believe issue summary is still relevant as the current summary mentions updating bartik
Comment #145
jwilson3Comment #146
jwilson3Comment #147
jwilson3Comment #148
jwilson3Comment #149
jwilson3I've restarted the pipeline. The test failures seem unrelated:
Comment #150
jwilson3Updating issue title to distinguish it from the other issue now moved to Seven theme queue: #2775725: Update the throbber icon
Comment #151
smustgrave commentedThat failure shows it needs a rebase. That issue was fixed last week
Comment #152
jwilson3Comment #153
jwilson3Rebased
Comment #154
jwilson3Okay, I've found a valid failing test having to do with htaccess scaffold file changes ...
Comment #155
jwilson3Comment #156
jwilson3Hiding attachments from previous approaches.
Comment #157
jwilson3Comment #158
jwilson3Yay. tests are passing now.
Comment #159
jwilson3I've reorganized Remaining Tasks in issue summary.
Comment #160
jwilson3I've restored the legacy throbber GIF and PNG files, per @smustgrave's comment #72 on sister issue #2575253-72: Update loading icon and use SVG:
I suppose this needs a CR now, but leaving in NR for adtl code review and #frontend signoff before diving deep into CR world.
Comment #161
jwilson3I've added this issue to the list on #3452493: [12.x] Remove images that have been replaced in core.
Comment #162
smustgrave commentedWasn't ignoring this way but wanted to see how the related one was handled. Can we revert the htaccess change here as well.
Will keep an eye out for this one.
Comment #164
mithun sUpdated the PR with the changes as per the #162, Please review.
Comment #165
smustgrave commentedchanges removed
Comment #167
nod_Committed 6aa443c and pushed to 11.x. Thanks!
Comment #169
quietone commentedRefer to the issue tag guidelines.
Comment #172
xjmBelatedly adding discussion credits per #97 and #118.