1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-10-16 06:03:37 +02:00

Radio checkbox whitespace

This commit is contained in:
Maciej Lenartowicz
2019-10-24 08:12:39 +00:00
parent a88fbf63e9
commit 88f3836485
8 changed files with 30 additions and 41 deletions

View File

@@ -32,8 +32,8 @@ export function CheckBox({
}) {
const uid = useUID();
return (
<div className={useDefaultSize ? formFieldsSize : ""} style={{ marginBottom: "1rem" }}>
<div className="custom-control custom-checkbox" style={{ marginBottom: "0" }}>
<div className={`form-group ${useDefaultSize ? formFieldsSize : ""}`.trim()}>
<div className="custom-control custom-checkbox ">
<input
className="custom-control-input"
type="checkbox"
@@ -42,9 +42,9 @@ export function CheckBox({
{...props}
/>
<label className="custom-control-label" htmlFor={uid} style={helpText ? { marginBottom: "0" } : null}>{label}</label>
<label className="custom-control-label" htmlFor={uid}>{label}</label>
{helpText && <small className="form-text text-muted">{helpText}</small>}
</div>
{helpText ? <small className="form-text text-muted">{helpText}</small> : null}
</div>
);
}