Add call to action button component

This commit is contained in:
2026-06-24 09:40:32 +02:00
parent 6c5e555e86
commit a45975bd42
3 changed files with 31 additions and 0 deletions
+11
View File
@@ -29,6 +29,17 @@
</div>
</section>
<!-- Component: Call-to-action-Button -->
<section id="component-call-to-action-button">
<p class="sg-preview-label">Component: Call-to-action-Button</p>
<div class="sg-component-row">
<button class="sg-interaction-element sg-button sg-button--cta" type="button" data-component="button" data-component-variant="cta">
Call-to-action-Button
</button>
</div>
</section>
<!-- Component: Prozessbutton -->
<section id="component-process-button">
<p class="sg-preview-label">Component: Prozessbutton</p>
+10
View File
@@ -124,6 +124,16 @@
</tbody>
</table>
<h3 class="sg-sub-heading sg-section-h3">Call-to-action-Button</h3>
<table class="sg-foundation-table sg-table-label">
<thead><tr><th>Semantischer Token</th><th>Verwendeter Foundation-Token</th><th>Beschreibung Verwendungszweck in der Komponente</th></tr></thead>
<tbody>
<tr><td>surface-button-cta</td><td>color-darkblue</td><td>Fläche des Call-to-action-Buttons.</td></tr>
<tr><td>text-button-cta</td><td>color-font-light</td><td>Textfarbe des Call-to-action-Buttons.</td></tr>
<tr><td>layout-button-cta-padding</td><td>spacing-large</td><td>Innenabstand des Call-to-action-Buttons auf allen Seiten.</td></tr>
</tbody>
</table>
<h3 class="sg-sub-heading sg-section-h3">Tabs</h3>
<table class="sg-foundation-table sg-table-label"><thead><tr><th>Semantischer Token</th><th>Verwendeter Foundation-Token</th><th>Beschreibung Verwendungszweck in der Komponente</th></tr></thead><tbody>
<tr><td>surface-tab-selected</td><td>color-dark-grey</td><td>Fläche des ausgewählten Tabs.</td></tr>
@@ -142,6 +142,16 @@
color: var(--text-button-process);
}
.sg-button--cta {
--surface-button-cta: var(--color-darkblue);
--text-button-cta: var(--color-font-light);
height: auto;
min-height: var(--interaction-height);
background: var(--surface-button-cta);
color: var(--text-button-cta);
padding: var(--spacing-large);
}
.sg-button--process-inactive {
background: var(--surface-button-process-inactive);
color: var(--text-button-process);