fix: only phrasing content is allowed inside label element
This commit is contained in:
@@ -33,12 +33,12 @@ export default function Checkbox({
|
||||
>
|
||||
{({ isSelected }) => (
|
||||
<>
|
||||
<div className={styles.checkboxContainer}>
|
||||
<div className={styles.checkbox}>
|
||||
<span className={styles.checkboxContainer}>
|
||||
<span className={styles.checkbox}>
|
||||
{isSelected && <CheckIcon color="white" />}
|
||||
</div>
|
||||
</span>
|
||||
{children}
|
||||
</div>
|
||||
</span>
|
||||
{fieldState.error ? (
|
||||
<Caption className={styles.error} fontOnly>
|
||||
<InfoCircleIcon color="red" />
|
||||
|
||||
Reference in New Issue
Block a user