samvera-labs / ramp

Interactive, IIIF powered audio/video media player React components library. Styleguidist Docs: https://samvera-labs.github.io/ramp/
https://ramp.avalonmediasystem.org/
30 stars 5 forks source link

Implement Expand/Close button in StructuredNav Component #645

Open Dananji opened 2 weeks ago

Dananji commented 2 weeks ago

Description

With the on-going state management refactor using custom hooks (#630), we are able to implement expand/close functionality for each section in the structured navigation in Ramp. We were not able to do this before due re-rendering in StructuredNavigation component, therefore this functionality was implemented in Avalon code.

Done Looks Like

Related work

https://github.com/samvera-labs/ramp/pull/644 This work is based off of state management refactor. So if this work is re-purposed when working on this issue it needs to be rebased off main branch.