Commit 168a990
authored
fix: Scrollytelling layout in Next instance (#1408)
**Related Ticket:** #1402
### Description of Changes
Provide a fallback value for top offset of ScrollyMapContainer: When
`topOffset` is undefined it causes the css `top` property to be faulty,
which makes the `position: sticky` not working.
### Notes & Questions About Changes
Do we still need the whole `useSlidingStickyHeaderProps` logic with the
USWDS header?
### Validation / Testing
You will to validate in the next-veda instance, making sure the map
stays sticky on the top when scrolling down.
Related PR on next-veda-ui:
NASA-IMPACT/next-veda-ui#41File tree
1 file changed
+1
-1
lines changed- app/scripts/components/common/blocks/scrollytelling
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
0 commit comments