folkehelseinstituttet / Fhi.Frontend.Demo

MIT License
2 stars 1 forks source link

FHI Angular Highcharts: Add navigation to chart or map in footer #623

Open proand opened 1 week ago

proand commented 1 week ago

Description

The user should be able to navigate to chart or map in the footer if diagram type is table.

Today user can navigate from chart or map to table by clicking a link in the footer. If diagram type navigation is disabled, the user can't navigate back to the chart or map they came from.

Acceptance Criteria

Given:

  1. That the functionality for the diagram navigation in the footer is agreed upon
  2. Exact text for links and info is ready

Then:

  1. Go to https://dev-designsystem.fhi.no/developer/components/highcharts#highcharts-all-inclusive
  2. Select "Dødsfall hjerte og kar, fordelt på fylke" in the "Velg datasett"-dropdown
  3. Click on link "Vis som tabell" in the footer
  4. Check that there is a link that will take you back to the map
  5. Click the link
  6. Check that you navigate back to map