Hi,
If I used form-check-inline with form-check-custom together, the inline effect disappeared, please help check, thanks.
e.g.
<div class="form-group form-check form-check-custom form-check-solid form-check-inline mb-3">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" id="strategy-source-social-media-facebook" class="form-check-input"><label class="form-check-label" for="strategy-source-social-media-facebook">Facebook</label>
</div>
Hi,
Please try to use below markup to have inline checkboxes:
<div class="d-flex align-items-center gap-5">
<div class="form-group form-check form-check-custom form-check-solid">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" class="form-check-input">
<label class="form-check-label" for="option-1">Option 1</label>
</div>
<div class="form-group form-check form-check-custom form-check-solid">
<input type="checkbox" name="strategy[source][social_media][]" value="facebook" class="form-check-input">
<label class="form-check-label" for="option-2">Option 2</label>
</div>
</div>
Hi,
I come up a solution which no need alter html structure:
.form-check-custom.form-check-inline {
display: inline-block;
margin-right: 1rem;
}
Hi ,
Great workaround. We will add it in the next update as:
// Inline
.form-check-custom {
&.form-check-inline {
display: inline-block;
margin-right: $form-check-inline-margin-end;
}
}