Add unlabeled variants for pulldown, input, and radio
This commit is contained in:
@@ -195,6 +195,17 @@
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -306,6 +317,18 @@
|
|||||||
>
|
>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -471,6 +494,26 @@
|
|||||||
<span>Option nicht verfügbar</span>
|
<span>Option nicht verfügbar</span>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@@ -1346,6 +1346,10 @@
|
|||||||
margin-left: var(--spacing-large);
|
margin-left: var(--spacing-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#component-radio-field .sg-radio-field-row--without-label > .sg-radio-activatable-group__choices {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 48rem) {
|
@media (max-width: 48rem) {
|
||||||
#component-radio-field .sg-checkbox-field-option {
|
#component-radio-field .sg-checkbox-field-option {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|||||||
Reference in New Issue
Block a user