grrr-amsterdam / cookie-consent

Cookie consent with accessible dialog, agnostic tag triggers and conditional content, script and embed hooks.
MIT License
63 stars 11 forks source link

Hide cookie consent in print styles #32

Closed roelandvs closed 9 months ago

roelandvs commented 9 months ago

To hide the cookie consent on active projects we need to add the @media print styles in the CSS of those projects.

roelandvs commented 9 months ago

@MartijnNieuwenhuizen Every project has their own cookie consent stylesheet. The stylesheet in this project is just a default/example stylesheet which is copied and adjusted in every project. styling documentation

MartijnNieuwenhuizen commented 9 months ago

@MartijnNieuwenhuizen Every project has their own cookie consent stylesheet. The stylesheet in this project is just a default/example stylesheet which is copied and adjusted in every project. styling documentation

@roelandvs I understand that this is the current scenario. But I would still add this functionality to this package so you don't have to do this within every project. Options are (an style tag in the HTML, inline styles, etc etc). That way, this becomes a feature within this package :)

roelandvs commented 9 months ago

@MartijnNieuwenhuizen Ah in that sense. I added the print style to the package. I also added the print styles to every repo, because I already did that.

If this is approved I'll also add this to the beta branch, because I see that version is used in some projects