mtempleheald / journeyasdata

MIT License
0 stars 0 forks source link

Collapsible sections feature #59

Open mtempleheald opened 3 years ago

mtempleheald commented 3 years ago

A section (not just a page) may have next/back button navigation, the section is only expanded when it is active, there is always one active section on a page. Opportunity to apply section level validation too, reducing the jumping around when attempting to navigate to next page. (Won't somebody think of the users!)

This should be a simple addition in terms of styling, use transitions to make this feel seamless.

mtempleheald commented 2 years ago

Was originally implemented as a click on the section header. This might work for navigation back into a closed section on desktop but it isn't good in general so has been disabled.

  1. Add config at journey level - we do not want some pages minimising sections and others not, it will feel disjointed.
  2. (If enabled) Trigger minimise on click of the next section navigation button. This works well on mobile too as it flows naturally.
  3. (if enabled) Clicking Back navigation from subsequent section or page, or clicking the closed section's header should reopen a closed section (and close the current one).