From 2b8b9acd5f9c4e19730ef2611004dceea19e8900 Mon Sep 17 00:00:00 2001 From: Arlindo Pereira Date: Fri, 8 Nov 2024 14:26:21 +0100 Subject: [PATCH] Code Review fixes --- .../fields/CheckboxField/CheckboxField.module.scss | 7 ++++--- .../forms/fields/CheckboxField/CheckboxField.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/components/forms/fields/CheckboxField/CheckboxField.module.scss b/src/components/forms/fields/CheckboxField/CheckboxField.module.scss index fba5145..981b732 100644 --- a/src/components/forms/fields/CheckboxField/CheckboxField.module.scss +++ b/src/components/forms/fields/CheckboxField/CheckboxField.module.scss @@ -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; } } } diff --git a/src/components/forms/fields/CheckboxField/CheckboxField.tsx b/src/components/forms/fields/CheckboxField/CheckboxField.tsx index 00a621b..1046974 100644 --- a/src/components/forms/fields/CheckboxField/CheckboxField.tsx +++ b/src/components/forms/fields/CheckboxField/CheckboxField.tsx @@ -106,13 +106,13 @@ export const CheckboxField = (props: CheckboxFieldProps) => { defaultChecked={props.defaultChecked} disabled={props.disabled} /> -
+ {label} - {sublabel && ( -
{sublabel}
- )} -
+ + {sublabel && ( +
{sublabel}
+ )} ); };