From 75ebbddcb52e66b3070b107fb32fd13418f7ca9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Thu, 21 May 2026 16:20:04 +0200 Subject: [PATCH] Decouple gray card segment surface from card body token --- patterns/vsf-card-listen-fundamentalanalyse-drawer.html | 2 +- semantic-tokens-components.html | 1 + styleguide.css | 7 ++----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/patterns/vsf-card-listen-fundamentalanalyse-drawer.html b/patterns/vsf-card-listen-fundamentalanalyse-drawer.html index 36cab21..82f5a6d 100644 --- a/patterns/vsf-card-listen-fundamentalanalyse-drawer.html +++ b/patterns/vsf-card-listen-fundamentalanalyse-drawer.html @@ -77,7 +77,7 @@
Gesamtbewertung
-
+

Score:

diff --git a/semantic-tokens-components.html b/semantic-tokens-components.html index ba94405..32799c2 100644 --- a/semantic-tokens-components.html +++ b/semantic-tokens-components.html @@ -19,6 +19,7 @@ surface-cardcolor-light-greyGrundfläche der Card. surface-card-bodycolor-light-greyFläche im Body-Segment der Card. + surface-card-segment-neutralcolor-light-greyNeutrale Segmentfläche für gezielte hellgraue Card-Segmente (z. B. sg-card-segment--gray). surface-card-header-primarycolor-darkbluePrimärer Header-Hintergrund. surface-card-header-alternativecolor-darkgreenAlternativer Header-Hintergrund. surface-card-header-mutedcolor-darkbrownZweite alternative Header-Fläche. diff --git a/styleguide.css b/styleguide.css index 1d0de78..d9e0d14 100644 --- a/styleguide.css +++ b/styleguide.css @@ -26,6 +26,7 @@ /* Semantic component tokens: Cards */ --surface-card: var(--color-light-grey); --surface-card-body: var(--color-light-grey); + --surface-card-segment-neutral: var(--color-light-grey); --surface-card-group: var(--color-background-purple-light); --surface-card-transparent: var(--color-transparent); --surface-card-header-primary: var(--color-darkblue); @@ -2312,7 +2313,7 @@ section + section { } .sg-card-segment--gray { - background: var(--surface-card-body); + background: var(--surface-card-segment-neutral); } .sg-card-segment--white { @@ -2348,10 +2349,6 @@ section + section { background: var(--surface-object-card-lower-segment); } -.sg-card-segment.sg-card-segment--body.sg-vsf-fundamental-score-segment { - background: var(--surface-content-block-card-title); -} - .sg-card-segment.sg-vsf-drawer-card__actions-segment { flex-direction: column; align-items: flex-start;