vaadin / web-components

A set of high-quality standards based web components for enterprise web applications. Part of Vaadin 20+
https://vaadin.com/docs/latest/components
462 stars 83 forks source link

[cookie-consent] Add extra configuration options #488

Open web-padawan opened 6 years ago

web-padawan commented 6 years ago

As a developer, I want my users not to just click the button to remove this cookie info, but to take some actions, especially:

  1. tick the purposes for the possible data processing (GDPR). Possible idea: checkbox group (because we can), with the first checkbox required and disabled. See example below: screen shot 2018-07-26 at 16 47 56
  2. once the cookie consent dialog is closed, I want to know which purposes have been marked as agree / disagree

If this is not supported by cookieconsent library, we probably could provide a helper element and pass it into the light dom of the vaadin-cookie-consent.

jcgueriaud commented 6 years ago

To be compliance to GDPR, I would like to:

There is an example on this website https://www.cnil.fr/fr/solutions-centralisees-de-recueil-de-consentement-aux-cookies-les-gestionnaires-de-tag (i'm pretty there are a lot of website will nice solutions).

I don't know how it may be implemented with webcomponents, it should be easily extended because you cannot deal with all the "provider" (youtube, analytics, ...).

Perhaps something like that: <vaadin-cookie-consent> <vaadin-cookie-consent-details id="youtube"> <info>custom text</info> <readmore>https://policies.google.com/privacy?hl=fr&gl=fr</readmore> </vaadin-cookie-consent-details> </vaadin-cookie-consent>

then (blocked until user accepts "youtube" cookie) <vaadin-consent ref="youtube"> <iframe width="420" height="315" src="youtube link"></iframe> </vaadin-consent>

What do you think ? :)

heruan commented 5 years ago

This is really needed, any ETA?