I think I'd rather go this route than zeroing out the margin via component CSS. Doing it in the CSS would require specific control over the HTML (e.g., with a selector like .input-group-addon > .form-check-input
) which would be less flexible to custom markup. It'd also cause issues when there's visible text next to the input as it would now be misaligned there.
Fixes #32857 (closed).