diff --git a/changelog.md b/changelog.md index 6abb5c3..9c1dfa3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-01-17 - 1.4.5 - fix(elements) +Fix issues in consentsoftware-cookieconsent component + +- Removed unused attribute handling for 'gotIt'. +- Fixed background and backdrop-filter transitions to ensure proper UI behavior. +- Consolidated consent button click handling into handleConsentButtonClick. +- Improved modal visibility toggling and acceptance flow. + ## 2025-01-17 - 1.4.4 - fix(core) Update LitElement properties to use accessors diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index dd1ff64..115f8f0 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.4.4', + version: '1.4.5', 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 5189d2c..82d6074 100644 --- a/ts_web/elements/consentsoftware-cookieconsent.ts +++ b/ts_web/elements/consentsoftware-cookieconsent.ts @@ -73,7 +73,7 @@ export class ConsentsoftwareCookieconsent extends LitElement { align-items: center; justify-content: center; z-index: 1000; /* standard z-index for fixed elements */ - background: rgba(0, 0, 0, 0); + background: rgba(255, 255, 255, 0); backdrop-filter: blur(0px); transition: all 0.2s; } @@ -91,10 +91,6 @@ export class ConsentsoftwareCookieconsent extends LitElement { min-width: calc(100vw / 3); box-sizing: border-box; overflow: hidden; - /* - * We start with margin-bottom as negative to hide the banner. - * The animation occurs when we toggle the gotIt/show attributes. - */ will-change: transform; /* ensure efficient rendering */ transition: all 0.3s; transform: scale(0.95); @@ -112,18 +108,6 @@ export class ConsentsoftwareCookieconsent extends LitElement { display: block; } - /* - * Animate margin-bottom when [gotIt] toggles. - * If gotIt=true, push the banner down off-screen. - * If gotIt=false, pull the banner into view. - */ - :host([gotIt='true']) { - background: blue; - } - :host([gotIt='false']) { - background: red; - } - .content { margin: auto; } @@ -184,7 +168,6 @@ export class ConsentsoftwareCookieconsent extends LitElement { constructor() { super(); - this.setAttribute('gotIt', 'true'); this.setAttribute('show', 'false'); } @@ -205,27 +188,29 @@ export class ConsentsoftwareCookieconsent extends LitElement {