From 1e091ec600d5d42cfaedcbd5b097409ae705651c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 16 Jan 2025 00:28:47 +0100 Subject: [PATCH] fix(elements): Improved styling consistency across several components --- changelog.md | 8 ++++++++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/consentsoftware-cookieconsent.ts | 9 +++++---- ts_web/elements/consentsoftware-header.ts | 4 ++-- ts_web/elements/consentsoftware-mainselection.ts | 5 ++--- ts_web/elements/consentsoftware-tabs.ts | 2 +- 6 files changed, 19 insertions(+), 11 deletions(-) diff --git a/changelog.md b/changelog.md index 4c2b420..e099294 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2025-01-16 - 1.3.5 - fix(elements) +Improved styling consistency across several components + +- Increased box-shadow intensity for better visual separation +- Changed border-bottom styles to use dotted lines for consistency +- Adjusted line-height for better vertical spacing +- Fixed border-right gradient on itemBox for better styling + ## 2025-01-14 - 1.3.4 - fix(dependencies) Corrected build script and updated @consent.software/webclient dependency version diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index bb6e48b..df89732 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.3.4', + version: '1.3.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 ec3fe31..05adf19 100644 --- a/ts_web/elements/consentsoftware-cookieconsent.ts +++ b/ts_web/elements/consentsoftware-cookieconsent.ts @@ -75,8 +75,9 @@ export class ConsentsoftwareCookieconsent extends LitElement { display: block; color: var(--text-color); background: var(--background-color); - box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.4); + box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6); position: realtive; + border: 1px dotted rgba(255, 255, 255, 0.1); border-top: 1px solid var(--accent-color); border-radius: 16px; max-width: 1100px; @@ -142,9 +143,9 @@ export class ConsentsoftwareCookieconsent extends LitElement { .info-container { color: var(--text-color); text-align: center; - line-height: 2em; + line-height: 3em; background: rgba(0, 0, 0, 0.1); - border-top: 1px solid rgba(255, 255, 255, 0.1); + border-top: 1px dotted rgba(255, 255, 255, 0.1); font-size: 0.8em; color: rgba(255, 255, 255, 0.5); } @@ -269,7 +270,7 @@ export class ConsentsoftwareCookieconsent extends LitElement { await this.updated(); const pageOverlay: HTMLDivElement = this.shadowRoot?.querySelector('.pageOverlay'); if (pageOverlay) { - pageOverlay.style.background = 'rgba(0, 0, 0, 0.5)'; + pageOverlay.style.background = 'rgba(0, 0, 0, 0.1)'; pageOverlay.style.backdropFilter = 'blur(2px)'; } const modalBox: HTMLDivElement = this.shadowRoot?.querySelector('.modalBox'); diff --git a/ts_web/elements/consentsoftware-header.ts b/ts_web/elements/consentsoftware-header.ts index 744352d..7d285c1 100644 --- a/ts_web/elements/consentsoftware-header.ts +++ b/ts_web/elements/consentsoftware-header.ts @@ -11,10 +11,10 @@ export class ConsentsoftwareHeader extends LitElement { public static styles = css` :host { display: block; - line-height: 2em; + line-height: 3em; text-align: center; font-family: ${shared.fontStack}; - border-bottom: 1px solid rgba(255, 255, 255, 0.1); + border-bottom: 1px dotted rgba(255, 255, 255, 0.1); } .heading { diff --git a/ts_web/elements/consentsoftware-mainselection.ts b/ts_web/elements/consentsoftware-mainselection.ts index 7d28cbf..bc48111 100644 --- a/ts_web/elements/consentsoftware-mainselection.ts +++ b/ts_web/elements/consentsoftware-mainselection.ts @@ -16,8 +16,6 @@ export class ConsentsoftwareMainSelection extends LitElement { :host { display: block; position: relative; - border-top: 1px solid rgba(255, 255, 255, 0.1); - border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .maincontainer { @@ -28,7 +26,8 @@ export class ConsentsoftwareMainSelection extends LitElement { .itemBox { padding: 16px; text-align: center; - border-right: 1px solid rgba(255, 255, 255, 0.1); + border-right: 1px solid; + border-image: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%) 1; } .itemBox:last-child { border-right: none; diff --git a/ts_web/elements/consentsoftware-tabs.ts b/ts_web/elements/consentsoftware-tabs.ts index 2115c3a..a941a58 100644 --- a/ts_web/elements/consentsoftware-tabs.ts +++ b/ts_web/elements/consentsoftware-tabs.ts @@ -44,7 +44,7 @@ export class ConsentsoftwareTabs extends LitElement {
Consent
Details
-
About Cookies
+
Cookie Policy + Legal Info
`;