Version 8.x-2.6 introduced an issue where the caption of images is not visible anymore regardless of field settings in the slick image field formatter.
By adding a some css to my theme I was able to simple solve the issue for me, but there should be a more general fix.
.slide__caption {
visibility: visible !important;
}
Comments
Comment #2
gausarts commentedThank you.
No clues for now, but might be related to Blazy dev storms recently.
What is your Blazy version?
Try latest 2.10 RC, and let me know.
Comment #3
stopopol commentedI use 8.x-2.9. I also just tried 2.10 RC but the issues persists with that one.
Comment #4
gausarts commentedHm, you are right.
I just checked. The caption is hidden now :)
Here is why:
slick.load.jsadds a classis-loadingto its slide content when Blazy.mediaelement was detected.This loading class hides caption temporarily till image fully loaded to allow blur, image transition, and other animation effects kick in first without being blocked/ covered by captions.
But Slick did not remove it, and relied on Blazy.
Apparently Blazy changed since 2.6 and forgot Slick wants to remove it.
We should fix this at Blazy, but leave it here for more contextual relevance.
ATM, forcing it visible as you did is a quick fix.
Thanks again, and I am sorry for inconveniences.
Comment #5
gausarts commentedTracking versions, the caption was fine at 2.4, but gone at 2.5.
FYI, added the fix at Blazy here:
https://git.drupalcode.org/project/blazy/-/commit/07b50100c4aa0addc007d4...
I am leaving this open as apparently some of the current
slick.load.jsfeatures are no longer relevant like this particularis-loadingclass against the latest Blazy decoupled lazy loader script features.Meaning even if the fix was provided at Blazy, users choosing decoupling like `
No JavaScript: lazy` will still have this issue at Slick since the above Blazy fix will not be loaded -- that is when no Blazy javascript files loaded with the correct combination of options.Comment #6
gausarts commentedReverted version. The previous mentioned version was Blazy:2.4, not Slick:2.4.
The fix specific for Slick was included along with this commit:
https://git.drupalcode.org/project/slick/-/commit/22fd2e3b8e1203489c023f...
https://git.drupalcode.org/project/slick/-/commit/22fd2e3b8e1203489c023f...
Thank you for contribution.