From 72c318a793ae130def5000d1a22ab2ea0bd04a80 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 17 Jan 2025 06:45:06 +0100 Subject: [PATCH] fix(consentsoftware-cookieconsent): Fix transition property in consent button styles and add HTMLElementTagNameMap declaration for global interface. --- changelog.md | 6 ++++++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/consentsoftware-cookieconsent.ts | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 31e279f..1d00123 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-01-17 - 1.4.3 - fix(consentsoftware-cookieconsent) +Fix transition property in consent button styles and add HTMLElementTagNameMap declaration for global interface. + +- Updated the transition property for consent buttons to transition all properties instead of just the background. +- Added global interface HTMLElementTagNameMap for custom element type support. + ## 2025-01-16 - 1.4.2 - fix(cookieconsent) Fix user-select property in consentsoftware-cookieconsent component for consistency in interaction. diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index f0e1782..45a502b 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.2', + version: '1.4.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 6d6ae8a..5189d2c 100644 --- a/ts_web/elements/consentsoftware-cookieconsent.ts +++ b/ts_web/elements/consentsoftware-cookieconsent.ts @@ -8,6 +8,12 @@ import * as csInterfaces from '@consent.software/interfaces'; import * as csWebclient from '@consent.software/webclient'; import { delayFor } from '@push.rocks/smartdelay'; +declare global { + interface HTMLElementTagNameMap { + 'consentsoftware-cookieconsent': ConsentsoftwareCookieconsent; + } +} + @customElement('consentsoftware-cookieconsent') export class ConsentsoftwareCookieconsent extends LitElement { public static demo = () => html``; @@ -168,7 +174,7 @@ export class ConsentsoftwareCookieconsent extends LitElement { line-height: 30px; text-align: center; cursor: pointer; - transition: background 0.2s; + transition: all 0.2s; } .consent-button:hover {