Skip to content

Commit

Permalink
fix(checkbox): set parent element's position to relative
Browse files Browse the repository at this point in the history
Since this was not set element could be appear in any parent whose position
not static and so could mess up with the layout.
  • Loading branch information
Nicolas Ramz committed Sep 26, 2023
1 parent 8b0da41 commit 95bb6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/checkbox/src/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const Checkbox = forwardRef<HTMLButtonElement, CheckboxProps>(
return (
<div
data-spark-component="checkbox"
className={cx('flex items-start gap-md text-body-1', className)}
className={cx('relative flex items-start gap-md text-body-1', className)}
>
<CheckboxInput
ref={ref}
Expand Down

0 comments on commit 95bb6d6

Please sign in to comment.