orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
4k stars 410 forks source link

Floating button after user interaction #210

Closed CasualRascal closed 2 years ago

CasualRascal commented 2 years ago

I believe there should be a simple but required enhancement to the default themes:

The EU law says that users should easily have access to their cookie preferences to be able to view and update their consent, by rejecting or accepting more than previously.

Therefore I believe that a floating button, which should appear after the plugin is dismissed by the user, should ship with the default styles.

Examples of this behavior can be seen on solutions provided by consent management saas like axeptio, iubenda, cookiebot, etc.

mastum commented 2 years ago

The EU law says that users should easily have access to their cookie preferences to be able to view and update their consent, by rejecting or accepting more than previously.

You can just add one button

<button type="button" aria-label="View cookie settings" data-cc="c-settings">Cookie Settings</button>

Or a link <a data-cc="c-settings">Cookie Settings</a>

See FAQ https://github.com/orestbida/cookieconsent#faq

orestbida commented 2 years ago

@CasualRascal,

this is a duplicate of #111.

If such a feature were to be added, then I would also need to add options for positioning, modal layout and possibly a custom icon and in my opinion it is not worth it (currently) since the aim of the plugin is to be as lightweight as possible. Nevertheless, you can still achieve this as noted by @mastum.