From 236d9cf1f2da90f20e85bf4863465d847ecdc9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Mon, 1 Jun 2026 17:24:18 +0200 Subject: [PATCH] Add notifications sizing tokens and group-card variant rule --- semantic-tokens-patterns.html | 8 ++++++++ styles/01-foundations.css | 3 +++ styles/28-patterns-notifications.css | 14 +++++++++++--- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/semantic-tokens-patterns.html b/semantic-tokens-patterns.html index de7446d..6af69ce 100644 --- a/semantic-tokens-patterns.html +++ b/semantic-tokens-patterns.html @@ -54,6 +54,14 @@ layout-object-group-card-max-widthdimension-object-group-card-max-widthMaximalbreite der einzelnen Karten im Pattern Object Group Card. +

Notifications

+ + + + + +
Semantischer TokenVerwendeter Foundation-TokenBeschreibung Verwendungszweck im Pattern
layout-notifications-card-flex-basislayout-object-card-min-widthFlex-Basis der Notification Card im Notifications-Pattern; gilt auch in der dokumentierten Variante innerhalb von .sg-group-card.
layout-notifications-card-min-widthlayout-object-card-min-widthMindestbreite der Notification Card im Notifications-Pattern; verhindert zu frühes Schrumpfen bei Viewport-Änderungen.
layout-notifications-card-max-widthlayout-object-card-max-widthMaximalbreite der Notification Card im Notifications-Pattern; begrenzt Wachstum konsistent zur Object-Card-Breite.
layout-notifications-text-segment-fixed-height150pxFixe Desktop-Höhe des ersten Text-Segments im Notifications-Pattern; auf Mobile wird die Höhe auf auto gesetzt.
+

Company Card

diff --git a/styles/01-foundations.css b/styles/01-foundations.css index 592c1f1..959030a 100644 --- a/styles/01-foundations.css +++ b/styles/01-foundations.css @@ -170,6 +170,9 @@ --layout-object-card-mobile-width: var(--dimension-object-card-mobile-width); --layout-object-card-mobile-height: var(--dimension-object-card-mobile-height); --layout-object-card-desktop-breakpoint: var(--dimension-object-card-desktop-breakpoint); + --layout-notifications-card-flex-basis: var(--layout-object-card-min-width); + --layout-notifications-card-min-width: var(--layout-object-card-min-width); + --layout-notifications-card-max-width: var(--layout-object-card-max-width); --layout-notifications-text-segment-fixed-height: 150px; --layout-object-group-card-min-width: var(--dimension-object-group-card-min-width); --layout-object-group-card-max-width: var(--dimension-object-group-card-max-width); diff --git a/styles/28-patterns-notifications.css b/styles/28-patterns-notifications.css index 64161bd..2f6ade0 100644 --- a/styles/28-patterns-notifications.css +++ b/styles/28-patterns-notifications.css @@ -11,9 +11,17 @@ } .sg-notifications-pattern__card { - flex: 1 1 var(--layout-object-card-min-width); - min-width: var(--layout-object-card-min-width); - max-width: var(--layout-object-card-max-width); + flex: 1 1 var(--layout-notifications-card-flex-basis); + min-width: var(--layout-notifications-card-min-width); + max-width: var(--layout-notifications-card-max-width); +} + +/* Dokumentierte Pattern-Variante: Notifications innerhalb Group Card */ +.sg-notifications-pattern.sg-group-card > .sg-notifications-pattern__card { + flex: 1 1 var(--layout-notifications-card-flex-basis); + min-width: var(--layout-notifications-card-min-width); + max-width: var(--layout-notifications-card-max-width); + width: auto; } .sg-notifications-pattern.sg-notifications-pattern--multi-row .sg-notifications-pattern__card {
Semantischer TokenVerwendeter Foundation-TokenBeschreibung Verwendungszweck im Pattern
text-company-card-data-negativechart-value-negativeTextfarbe für negative Kennzahlenwerte im Data-Columns-Segment der Company Card.