From 91cf9b6f60fdd0832cf14c6b68b222c9281cc04f Mon Sep 17 00:00:00 2001 From: roelandvs Date: Thu, 25 Jan 2024 10:03:26 +0100 Subject: [PATCH] Hide cookie consent in print media styles --- src/dialog.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dialog.mjs b/src/dialog.mjs index 1d0e34f..9192fb6 100644 --- a/src/dialog.mjs +++ b/src/dialog.mjs @@ -139,6 +139,11 @@ export default class Dialog extends HTMLElement { pointer-events: none; transform: translate(0, 100px); } + @media print { + .${this.config.prefix} { + display: none; + } + } `); const formElement = dialogElement.lastElementChild;