klaro-org / klaro-js

Klaro Privacy Manager. An open-source, privacy-friendly & compliant consent manager for your website.
https://klaro.org
Other
1.18k stars 249 forks source link

Add classes to the body after the script has run #314

Open Jako opened 3 years ago

Jako commented 3 years ago

I would like to hide a form thats protected by Google reCAPTCHA without a consent of the user to use reCAPTCHA.

This could be done easy with a body class klaro-consent-googleRecaptcha. For each enabled external service a class could be added in the form <prefix>-consent-<service>. This would help to hide/show sections of a website on base of the consent state.

It would be nice, if the prefix could be configurable.

adewes commented 3 years ago

Hi @Jako, sorry for the late reply! I think I understand your use case and it seems relevant, I'll add it to our feature roadmap!