Add unlabeled variants for pulldown, input, and radio

This commit is contained in:
2026-05-30 08:19:32 +02:00
parent ccc39c4acf
commit afaff14c82
2 changed files with 47 additions and 0 deletions
+43
View File
@@ -195,6 +195,17 @@
</select>
</label>
</div>
<div class="sg-state-example">
<p class="sg-state-example__label sg-table-label">Variante ohne Label</p>
<div class="sg-labeled-input-row">
<div class="sg-pulldown-demo" data-open="false" data-align="left" data-selection-mode="single" data-component="pulldown" data-component-state="inactive-selectable">
<button class="sg-interaction-element sg-pulldown sg-pulldown--inactive-selectable sg-pulldown-demo__trigger" type="button" aria-expanded="false" aria-label="Pulldown ohne Label ohne aktive Auswahl" data-component-part="pulldown-trigger">
Auswahl
</button>
</div>
</div>
</div>
</div>
</section>
@@ -306,6 +317,18 @@
>
</label>
</div>
<div class="sg-state-example">
<p class="sg-state-example__label sg-table-label">Variante ohne Label</p>
<div class="sg-labeled-input-row">
<input
class="sg-interaction-element sg-input-single-line sg-input-single-line--inactive-selectable sg-form-inactive-selectable"
type="text"
placeholder="Einzeiliges Eingabefeld"
aria-label="Einzeiliges Eingabefeld ohne Label ohne Eingabe"
>
</div>
</div>
</div>
</section>
@@ -471,6 +494,26 @@
<span>Option nicht verfügbar</span>
</span>
</label>
<div class="sg-checkbox-field-option sg-body" data-component="radio-field" data-component-state="default">
<span class="sg-state-example__label sg-table-label">Variante ohne Gesamtlabel</span>
<span class="sg-radio-field-row sg-radio-field-row--without-label">
<span class="sg-radio-activatable-group__choices">
<span class="sg-radio-activatable-group__choice">
<button class="sg-radio-field" type="button" role="radio" aria-checked="false" aria-label="Radio 1 wählen">
<span class="sg-radio-field__mark" aria-hidden="true"></span>
</button>
<span>Radio 1</span>
</span>
<span class="sg-radio-activatable-group__choice">
<button class="sg-radio-field" type="button" role="radio" aria-checked="false" aria-label="Radio 2 wählen">
<span class="sg-radio-field__mark" aria-hidden="true"></span>
</button>
<span>Radio 2</span>
</span>
</span>
</span>
</div>
</div>
</section>