[2.x] Replace Foundation Magellan with modern Javascript

Created on 20 March 2023, about 2 years ago
Updated 29 June 2023, almost 2 years ago

Problem/Motivation

We had problems with this script in various projects, Foundation Magellan seems not that reliable.
Magellan didn't use an JS Intersection Observer, what defenetily is the best solution to this topic.

We probably should deprecate the whole module (no D10 Release), instead we might create a neutral "Anchor Menu Block" module. I think we can copy over all the fields, the Intersection Observer basically accepts the same parameters.

Steps to reproduce

Klick on a Anchor link, if the link is marked as 'active' or not is a thing of "luck", it depends on the the sites menu bar position, styling, .. or whatever.

Proposed resolution

Use an Intersection observer to solve this better.

See - for example:
https://www.smashingmagazine.com/2021/07/dynamic-header-intersection-obs...
https://codepen.io/michellebarker/full/xxwLpRG
https://codepen.io/michellebarker/pen/QWpzwYN

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024