nhsuk / betahealth

Rendering application for beta symptom and condition pages
https://beta.nhs.uk
MIT License
2 stars 8 forks source link

Allow details elements to be auto expanded #276

Open teneightfive opened 7 years ago

teneightfive commented 7 years ago

If the url contains a hash containing the id for a details element we should expand the contents of that element.

teneightfive commented 7 years ago

This change may well be parked for now until we learn more about the behaviour and this content/design pattern.

The current reason for needing thing behaviour is so one condition page can link to a specific reveal on another condition page. In this case, from common cold to the "How to gargle salt water" reveal on sore throat.

Our current implementation is that the link is only on "sore throat" on common cold so people can learn more about that condition rather than needing to click to another page for a specific "How to..."

We should look at the analytics to learn whether this link is being clicked and then change the call to action to "gargle salt water" and see if there is any change in behaviour. In addition we should consider including the same snippet on the common cold page and see if this changes any behaviour.

If we start using reusable snippets we'll need to look at how we manage that content in a central place and include them in pieces of content.