dpc-sdp / ripple

Ripple is the frontend framework for Single Digital Presence, delivered using Nuxt and Vue.js
Apache License 2.0
61 stars 37 forks source link

[SDPA-6234] Trigger Accordion via AnchorLinks #1206

Closed waitingallday closed 2 years ago

waitingallday commented 2 years ago

Motivation and Context

JIRA issue: https://digital-engagement.atlassian.net/browse/SDPA-6234

Changed

  1. Light refactor of Accordion and export SCSS for clarity
  2. Add RplAccordionEventBus to push events through
  3. Add accordion triggers to AnchorLinks collection in ripple-nuxt-tide
  4. In AnchorLinks, emit an event to RplAccordionEventBus for accordion triggers
  5. In Accordion open the panel
  6. Replace deprecated substr call in packages/ripple-nuxt-tide/lib/core/anchorlinks.js

Screenshots

How Has This Been Tested?

Types of changes

Checklist