esl icon indicating copy to clipboard operation
esl copied to clipboard

[esl-carousel/presentation]: anchor support

Open ala-n opened this issue 3 months ago • 0 comments

It looks like we need to resolve the following subtopics:

  1. We need to create a way to auto-build anchor names for slide collection. It could be something like a computed value of 11ty data NOTE: Ideally, we considering migrating our sive-nav to use anchors instead of slide numbers

  2. Overal behaviour for countainers (it sounds like carousel should support it) In case of esl:show:request have dispatched from the slide inner content - the slide should became active Note: we could use that behaviour for anchor navigation, but it is unclear if it be suitable for us

  3. We need to create a carousel plugin to manage anchors: 3.1) In case the slide is marked with an anchor (id or special attribute) we need to update URL (without page reload) with the appropriate anchor on the slide change 3.2) If the anchor ij the URL changed (or initially presented) and the carousel have a slide with the same anchor -> we should open this slide

ala-n avatar Apr 16 '24 12:04 ala-n