Replace inline group-card heading spacing with component CSS class

This commit is contained in:
2026-05-28 10:49:21 +02:00
parent 16b5a99923
commit 442d90520a
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -170,7 +170,7 @@
<p class="sg-preview-label">Variante: Group Card mit H2 Überschrift</p>
<div class="sg-group-card" data-component="group-card">
<h2 class="sg-heading-h2 sg-text-on-dark" style="margin-left: var(--card-segment-padding-horizontal);">Gruppenüberschrift</h2>
<h2 class="sg-heading-h2 sg-text-on-dark sg-group-card__heading">Gruppenüberschrift</h2>
<article class="sg-card" data-component="card" data-component-context="group-card">
<div class="sg-card-segment sg-card-segment--header sg-card-segment--darkblue" data-component-part="card-header">
+8
View File
@@ -167,6 +167,14 @@
width: calc(50% - var(--spacing-small));
}
.sg-group-card__heading {
flex: 0 0 100%;
margin-top: 0;
margin-right: 0;
margin-bottom: var(--spacing-small);
margin-left: var(--card-segment-padding-horizontal);
}
.sg-page-cards .sg-preview-area {
display: flex;
flex-direction: column;