empreinte-digitale / orejime

An easy to use consent manager that focuses on accessibility.
https://orejime.empreintedigitale.fr/
Other
155 stars 26 forks source link

Reopen Notice dialog using `orejime.show()` when `mustNotice` is true #80

Open gtnsimon opened 2 years ago

gtnsimon commented 2 years ago

It is possible to reopen orejime consent screen using orejime.show() which opens ConsentModal component:

Show component look ![image](https://user-images.githubusercontent.com/8135290/149233758-10601337-2991-4811-a3b8-74b697b7ec75.png)

In code mustNotice acts only for mandatory ConsentNotice display. On first visit (orejime cookie not yet exists) user is displayed a large Notice screen on top of app content:

image

When user give its consent the Notice disappear but it can never be reopened manually using orejime.show().

Motivations

I've customized how orejime looks like on websites I work on. Notice is not a small banner at the bottom of the screen but a large fullscreen dialog. I give to users the ability to update their consent by clicking a button on a page but I would like to reopen the Notice screen in first place and not the toggleable apps list which is not revelant to me because I've decide to display a mandatory Notice using mustNotice: true.

image