Tighten checkbox invalid stack spacing

This commit is contained in:
2026-06-22 18:24:17 +02:00
parent 1f478a8059
commit e6b76c88ed
2 changed files with 10 additions and 34 deletions
+8 -11
View File
@@ -536,17 +536,14 @@
<div class="sg-state-example"> <div class="sg-state-example">
<p class="sg-state-example__label sg-table-label">form-invalid</p> <p class="sg-state-example__label sg-table-label">form-invalid</p>
<div class="sg-labeled-input-row sg-labeled-input-row--checkbox-invalid"> <div class="sg-input-validation-stack sg-input-validation-stack--checkbox-invalid">
<span class="sg-label">Label</span> <label class="sg-checkbox-field-option sg-body" data-component="checkbox-field" data-component-state="default">
<span class="sg-input-validation-stack"> <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">
<label class="sg-checkbox-field-option sg-body" data-component="checkbox-field" data-component-state="default"> <span class="sg-checkbox-field__mark" aria-hidden="true"></span>
<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"> </button>
<span class="sg-checkbox-field__mark" aria-hidden="true"></span> <span>Standard Checkbox</span>
</button> </label>
<span>Standard Checkbox</span> <span class="sg-form-validation-text" id="checkbox-invalid-feedback">Bitte mindestens eine Option auswählen.</span>
</label>
<span class="sg-form-validation-text" id="checkbox-invalid-feedback">Bitte mindestens eine Option auswählen.</span>
</span>
</div> </div>
</div> </div>
</div> </div>
+2 -23
View File
@@ -441,29 +441,8 @@
grid-row: 2; grid-row: 2;
} }
#component-checkbox-field .sg-labeled-input-row--checkbox-invalid { #component-checkbox-field .sg-input-validation-stack--checkbox-invalid {
display: grid; gap: calc(var(--spacing-small) / 4);
grid-template-columns: auto minmax(0, 1fr);
column-gap: var(--spacing-large);
row-gap: var(--spacing-small);
align-items: start;
}
#component-checkbox-field .sg-labeled-input-row--checkbox-invalid .sg-label {
grid-column: 1;
grid-row: 1;
margin-right: 0;
}
#component-checkbox-field .sg-labeled-input-row--checkbox-invalid .sg-input-validation-stack {
grid-column: 2;
grid-row: 1;
gap: calc(var(--spacing-small) / 2);
}
#component-checkbox-field .sg-labeled-input-row--checkbox-invalid .sg-form-validation-text {
grid-column: 1 / -1;
grid-row: 2;
} }
.sg-input-multi-line { .sg-input-multi-line {