Skip to content

Commit fa9edf8

Browse files
committed
Wrap Checkbox and RadioButton children in a span
This avoids a hazard where the Checkbox's flex layout can cause children to be displayed with an unexpected layout. See hypothesis/h#9844.
1 parent 093b115 commit fa9edf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/input/ToggleInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function ToggleInput({
9797
'min-w-min min-h-min',
9898
)}
9999
/>
100-
{children}
100+
<span>{children}</span>
101101
</label>
102102
);
103103
}

0 commit comments

Comments
 (0)