From d15f8ecf3921f137360b3efcbcb9f80f89c6d414 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 20 Jan 2025 20:59:36 +0100 Subject: [PATCH] fix(consentsoftware-cookieconsent): Fix visual inconsistencies in the consent software modal overlay and shadow. --- changelog.md | 6 ++++++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/consentsoftware-cookieconsent.ts | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 7b33afe..c49245e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-01-20 - 1.5.3 - fix(consentsoftware-cookieconsent) +Fix visual inconsistencies in the consent software modal overlay and shadow. + +- Updated the shadow color in the modal box to use a consistent color. +- Restored backdrop blur effect in the page overlay when visible. + ## 2025-01-20 - 1.5.2 - fix(core) No changes detected diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index b4f7731..4d7200a 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@consent.software/catalog', - version: '1.5.2', + version: '1.5.3', description: 'A library of web components designed to integrate robust consent management capabilities into web applications, ensuring compliance with privacy regulations.' } diff --git a/ts_web/elements/consentsoftware-cookieconsent.ts b/ts_web/elements/consentsoftware-cookieconsent.ts index 7f01661..38e4fe7 100644 --- a/ts_web/elements/consentsoftware-cookieconsent.ts +++ b/ts_web/elements/consentsoftware-cookieconsent.ts @@ -80,14 +80,13 @@ export class ConsentsoftwareCookieconsent extends LitElement { .pageOverlay.shake { background: rgba(0, 0, 0, 0.5) !important; - backdrop-filter: blur(20px) !important; } .modalBox { display: block; color: var(--text-color); background: var(--background-color); - box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6); + box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6); position: realtive; border: 1px dotted rgba(255, 255, 255, 0.1); border-top: 1px solid var(--accent-color); @@ -104,7 +103,6 @@ export class ConsentsoftwareCookieconsent extends LitElement { .modalBox.shake { animation: shake 150ms 2 linear; - box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6); } @keyframes shake { @@ -286,8 +284,8 @@ export class ConsentsoftwareCookieconsent extends LitElement { await this.updated(); const pageOverlay: HTMLDivElement = this.shadowRoot?.querySelector('.pageOverlay'); if (pageOverlay) { - pageOverlay.style.background = 'rgba(255,255,255, 0.1)'; - pageOverlay.style.backdropFilter = 'blur(0px)'; + pageOverlay.style.background = 'rgba(0,0,0, 0.5)'; + pageOverlay.style.backdropFilter = 'blur(20px)'; } const modalBox: HTMLDivElement = this.shadowRoot?.querySelector('.modalBox'); if (modalBox) {