Skip to content

Fix Image Lightbox not working with CMS images#75

Open
bencounsell wants to merge 1 commit intomainfrom
auto-fix/issue-72
Open

Fix Image Lightbox not working with CMS images#75
bencounsell wants to merge 1 commit intomainfrom
auto-fix/issue-72

Conversation

@bencounsell
Copy link
Copy Markdown
Member

Summary

Fixes the lightbox feature on the Image component when the image source is set to CMS. The lightbox image was not being set correctly for CMS images.

Fixes #72

Fixes #72

The lightbox template expects 'srcset' property on the lightImage object, but this property was not being set for CMS images. This caused the lightbox to not display the correct image when using CMS image sources.

The fix ensures that srcset is properly set to the baseSrc from the responsive image data for both light and dark mode CMS images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image Lightbox doesn't work with CMS

1 participant