Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
71ee96307e | |||
e0ed973b3a | |||
1ab6e09c95 | |||
26fd75b8ae |
10
changelog.md
10
changelog.md
@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-01-16 - 1.4.2 - fix(cookieconsent)
|
||||
Fix user-select property in consentsoftware-cookieconsent component for consistency in interaction.
|
||||
|
||||
|
||||
## 2025-01-16 - 1.4.1 - fix(consentsoftware-toggle)
|
||||
Fix issue in drag event handling logic for the toggle component.
|
||||
|
||||
- Corrected dragging functionality to accurately track dragging state.
|
||||
- Included logic to delay the reset of the dragging state after toggling.
|
||||
|
||||
## 2025-01-16 - 1.4.0 - feat(toggle component)
|
||||
Enhanced consent toggle component with drag functionality
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@consent.software/catalog",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.2",
|
||||
"private": false,
|
||||
"description": "A library of web components designed to integrate robust consent management capabilities into web applications, ensuring compliance with privacy regulations.",
|
||||
"exports": {
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@consent.software/catalog',
|
||||
version: '1.4.0',
|
||||
version: '1.4.2',
|
||||
description: 'A library of web components designed to integrate robust consent management capabilities into web applications, ensuring compliance with privacy regulations.'
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ export class ConsentsoftwareCookieconsent extends LitElement {
|
||||
public static styles = css`
|
||||
:host {
|
||||
font-family: ${shared.fontStack};
|
||||
user-select: none;
|
||||
/* Default theme variables */
|
||||
--text-color: #333;
|
||||
--background-color: #eeeeee;
|
||||
|
@ -189,7 +189,6 @@ export class ConsentsoftwareToggle extends LitElement {
|
||||
|
||||
// Start dragging
|
||||
this.isDragging = true;
|
||||
this.hasDragged = false;
|
||||
// The difference between the pointer’s X and the knob’s current position
|
||||
this.startX = event.clientX - this.currentX;
|
||||
|
||||
@ -229,6 +228,9 @@ export class ConsentsoftwareToggle extends LitElement {
|
||||
|
||||
// Dispatch toggle event
|
||||
this.dispatchEvent(new CustomEvent('toggle', { detail: { selected: this.selected } }));
|
||||
delayFor(0).then(() => {
|
||||
this.hasDragged = false;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user