Skip to content

Commit bbcde72

Browse files
committed
[#45] ♻️ Separate label styles into labelTextClass variable
1 parent 529351b commit bbcde72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/common/input/CheckboxInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const CheckboxInput = ({
5959
'focus:outline-none focus:ring-1 focus:ring-primary-normal',
6060
disabled && 'cursor-not-allowed opacity-50'
6161
)
62+
const labelTextClass = twMerge('ml-10 h-22', className)
6263

6364
return (
6465
<label className={labelClass}>
@@ -80,7 +81,7 @@ export const CheckboxInput = ({
8081
>
8182
{getIconForState(variant, checked)}
8283
</button>
83-
<span className={twMerge('ml-10 h-22', className)}>{label}</span>
84+
<span className={labelTextClass}>{label}</span>
8485
</label>
8586
)
8687
}

0 commit comments

Comments
 (0)