From d69f777b25b2642fea2a9dd0538899067191f5f8 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Sun, 30 Nov 2025 23:46:39 +0000 Subject: [PATCH] fix(dees-stepper): Improve dees-stepper visual style and transitions --- changelog.md | 11 +++++++++++ ts_web/00_commitinfo_data.ts | 2 +- ts_web/elements/dees-stepper/dees-stepper.ts | 19 ++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/changelog.md b/changelog.md index 465eaa7..fb88164 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,16 @@ # Changelog +## 2025-11-30 - 2.0.1 - fix(dees-stepper) +Improve dees-stepper visual style and transitions + +- Smooth animation: extend .step transition duration and use a cubic-bezier curve for smoother motion. +- Add .step.entrance class with a shorter easing for entrance animations to keep entrance timing distinct. +- Visual tweaks: reduce border-radius from 18px to 12px and increase inner content padding to 32px. +- Color and border updates: adjust background and border colors for light/dark themes to more consistent values. +- Shadow simplification: replace theme-dependent heavy shadows with a single subtle shadow (0 8px 32px rgba(0,0,0,0.4)). +- Remove selected-state border/box-shadow overrides (selection visuals simplified). +- Remove background-clip: padding-box to simplify rendering. + ## 2025-11-17 - 2.0.0 - BREAKING CHANGE(decorators) Migrate to TC39 standard decorators (accessor) across components, update tsconfig and bump dependencies diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 034f698..81fe47e 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-catalog', - version: '2.0.0', + version: '2.0.1', description: 'A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.' } diff --git a/ts_web/elements/dees-stepper/dees-stepper.ts b/ts_web/elements/dees-stepper/dees-stepper.ts index 470ece0..0960f1a 100644 --- a/ts_web/elements/dees-stepper/dees-stepper.ts +++ b/ts_web/elements/dees-stepper/dees-stepper.ts @@ -67,26 +67,23 @@ export class DeesStepper extends DeesElement { position: relative; pointer-events: none; overflow: hidden; - transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, border 0.35s ease; + transition: transform 0.7s cubic-bezier(0.87, 0, 0.13, 1), box-shadow 0.7s cubic-bezier(0.87, 0, 0.13, 1), filter 0.7s cubic-bezier(0.87, 0, 0.13, 1), border 0.7s cubic-bezier(0.87, 0, 0.13, 1); max-width: 500px; min-height: 300px; - border-radius: 18px; - background: ${cssManager.bdTheme('#ffffff', '#18181b')}; - border: 1px solid ${cssManager.bdTheme('rgba(226, 232, 240, 0.9)', 'rgba(63, 63, 70, 0.85)')}; + border-radius: 12px; + background: ${cssManager.bdTheme('#ffffff', '#0f0f11')}; + border: 1px solid ${cssManager.bdTheme('#e2e8f0', '#272729')}; color: ${cssManager.bdTheme('#0f172a', '#f5f5f5')}; margin: auto; margin-bottom: 20px; filter: opacity(0.55) saturate(0.85); - box-shadow: ${cssManager.bdTheme('0 20px 40px -25px rgba(15, 23, 42, 0.45)', '0 20px 36px -22px rgba(15, 23, 42, 0.65)')}; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); user-select: none; - background-clip: padding-box; } .step.selected { pointer-events: all; filter: opacity(1) saturate(1); - border: 1px solid ${cssManager.bdTheme(colors.dark.blue, colors.dark.blue)}; - box-shadow: ${cssManager.bdTheme('0 28px 60px -30px rgba(15, 23, 42, 0.42)', '0 26px 55px -28px rgba(37, 99, 235, 0.6)')}; user-select: auto; } @@ -94,6 +91,10 @@ export class DeesStepper extends DeesElement { filter: opacity(0); } + .step.entrance { + transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease, border 0.35s ease; + } + .step.entrance.hiddenStep { transform: translateY(16px); } @@ -165,7 +166,7 @@ export class DeesStepper extends DeesElement { } .step .content { - padding: 24px 28px 32px; + padding: 32px; } `, ];