Skip to content

fix: Add wrapping div for scrollytelling map and chapters#1437

Merged
AliceR merged 1 commit intomainfrom
fix#1418/scrollytelling-layout
Feb 5, 2025
Merged

fix: Add wrapping div for scrollytelling map and chapters#1437
AliceR merged 1 commit intomainfrom
fix#1418/scrollytelling-layout

Conversation

@AliceR
Copy link
Copy Markdown
Member

@AliceR AliceR commented Feb 4, 2025

Related Ticket: Fix #1418

Description of Changes

Since the legacy instance was using a lazyload-wrapper this wasn't necessary*, but for instances not using this approach, the additional wrapping div is actually required to build the layout as intended. It doesn't hurt the legacy either.

* The LazyLoad component from 'react-lazyload' creates a wrapping div with class="lazyload-wrapper "

Validation / Testing

Go to a story, make sure you can scroll down all the way to see text content below the scrollymap, as well as map comparison blocks.
Corresponding deploy preview from next-veda-ui: https://deploy-preview-43--veda-ui-next-test.netlify.app/stories/air-quality-and-covid-19

Since the legacy instance was using a lazyload-wrapper this wasn't necessary, but for instances not using this approach, the additional wrapping div is actually required to build the layout as intended. It doesn't hurt the legacy either.
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 4, 2025

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit f9aa2c7
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/67a24465e275260008841d67
😎 Deploy Preview https://deploy-preview-1437--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AliceR AliceR requested a review from dzole0311 February 4, 2025 16:50
@AliceR AliceR merged commit d764dba into main Feb 5, 2025
11 checks passed
@AliceR AliceR deleted the fix#1418/scrollytelling-layout branch February 5, 2025 09:41
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.

Scrollytelling doesn't scroll away even when the scrollytelling section is done

2 participants