Skip to content

Commit

Permalink
chore: Swapping left/right margin on checkbox (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
selimovicz authored Nov 10, 2023
1 parent ee6ae2d commit c01f128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const CheckboxComponent: ForwardRefRenderFunction<HTMLInputElement, CheckboxProp
bold={checkedOrMixed}
>
<span className="tw-flex tw-items-center tw-whitespace-nowrap">
<span className="tw-inline-flex tw-mr-1.5">
<span className="tw-inline-flex">
<input
{...mergeProps(groupInputProps || inputProps, focusProps)}
id={id}
Expand All @@ -232,7 +232,7 @@ const CheckboxComponent: ForwardRefRenderFunction<HTMLInputElement, CheckboxProp
{stateMap[state]}
</span>
</span>
<span className="tw-inline-flex tw-flex-col tw-min-w-0">
<span className="tw-inline-flex tw-flex-col tw-min-w-0 tw-ml-1.5">
{label && !hideLabel && (
<span
ref={labelContainer}
Expand Down

0 comments on commit c01f128

Please sign in to comment.