Skip to content

Commit

Permalink
Hide cookie consent in print media styles
Browse files Browse the repository at this point in the history
  • Loading branch information
roelandvs committed Feb 12, 2024
1 parent 5d3c435 commit 91cf9b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dialog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ export default class Dialog extends HTMLElement {
pointer-events: none;
transform: translate(0, 100px);
}
@media print {
.${this.config.prefix} {
display: none;
}
}
</style>`);

const formElement = dialogElement.lastElementChild;
Expand Down

0 comments on commit 91cf9b6

Please sign in to comment.