Skip to content

Commit

Permalink
Code Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nighto committed Nov 8, 2024
1 parent 3a172fd commit 2b8b9ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@
position: relative;
margin-left: bk.$spacing-2;
top: -2px;
}

.bk-checkbox-field__label__sublabel {
font-size: bk.$font-size-xs;
}
.bk-checkbox-field__sublabel {
font-size: bk.$font-size-xs;
padding-left: 26px;
}
}
}
10 changes: 5 additions & 5 deletions src/components/forms/fields/CheckboxField/CheckboxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ export const CheckboxField = (props: CheckboxFieldProps) => {
defaultChecked={props.defaultChecked}
disabled={props.disabled}
/>
<div className={cl['bk-checkbox-field__label__content']}>
<span className={cl['bk-checkbox-field__label__content']}>
{label}
{sublabel && (
<div className={cl['bk-checkbox-field__label__sublabel']}>{sublabel}</div>
)}
</div>
</span>
</label>
{sublabel && (
<div className={cl['bk-checkbox-field__sublabel']}>{sublabel}</div>
)}
</div>
);
};

0 comments on commit 2b8b9ac

Please sign in to comment.