alphagov / govuk-design-system

One place for service teams to find styles, components and patterns for designing government services.
https://www.gov.uk/design-system
MIT License
512 stars 232 forks source link

Iterate the cookie banner guidance #1556

Closed hannalaakso closed 3 years ago

hannalaakso commented 3 years ago

What

Following user feedback, we should explain how the cookie banner should be hidden when JavaScript is enabled and the user has previously accepted cookies (we explain how to hide the banner but don't have a code example for the hidden state as the example would be a hidden cookie banner).

We should add guidance for when it might be appropriate to implement both a server side and a client side cookie banner and how to progressively enhance it with JavaScript.

We should add guidance for how to handle the hiding of the banner if the service is only collecting essential cookies on client and server.

We should also review the guidance to ensure that teams understand when it's appropriate to only have a client side banner.

Why

We want to ensure that the guidance works for teams and covers the relevant scenarios.

Who needs to know about this

Content designer, technical writer, developer

Depends on

https://github.com/alphagov/govuk-frontend/issues/2160

Done when

calvin-lau-sig7 commented 3 years ago

@kellylee-gds Guidance has been reviewed and ready for release (just needs final check and privacy review). Moving to blocked so new examples (in Option 2) can be added after new version of Frontend is released.