Align checkbox invalid validation text

This commit is contained in:
2026-06-22 18:19:53 +02:00
parent a74d00f62c
commit 6fff7e4b50
2 changed files with 35 additions and 8 deletions
+11 -8
View File
@@ -536,14 +536,17 @@
<div class="sg-state-example">
<p class="sg-state-example__label sg-table-label">form-invalid</p>
<div class="sg-input-validation-stack">
<label class="sg-checkbox-field-option sg-body" data-component="checkbox-field" data-component-state="default">
<button class="sg-checkbox-field" type="button" role="checkbox" aria-checked="false" aria-label="Standard Checkbox mit Validierung" aria-invalid="true" aria-describedby="checkbox-invalid-feedback">
<span class="sg-checkbox-field__mark" aria-hidden="true"></span>
</button>
<span>Standard Checkbox</span>
</label>
<span class="sg-form-validation-text" id="checkbox-invalid-feedback">Bitte mindestens eine Option auswählen.</span>
<div class="sg-labeled-input-row sg-labeled-input-row--checkbox-invalid">
<span class="sg-label">Label</span>
<span class="sg-input-validation-stack">
<label class="sg-checkbox-field-option sg-body" data-component="checkbox-field" data-component-state="default">
<button class="sg-checkbox-field" type="button" role="checkbox" aria-checked="false" aria-label="Standard Checkbox mit Validierung" aria-invalid="true" aria-describedby="checkbox-invalid-feedback">
<span class="sg-checkbox-field__mark" aria-hidden="true"></span>
</button>
<span>Standard Checkbox</span>
</label>
<span class="sg-form-validation-text" id="checkbox-invalid-feedback">Bitte mindestens eine Option auswählen.</span>
</span>
</div>
</div>
</div>