Skip to content

Commit

Permalink
fix(FormField): fixed alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LexSwed committed Oct 12, 2020
1 parent f98a054 commit a99db40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/lib/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ const Checkbox: React.FC<Props> = ({
css,
style,
className,
flow = 'row-reverse',
flow = 'row',
label,
secondaryLabel,
space = 'sm',
display = 'inline',
cross = 'center',
display,
cross,
disabled,
id,
...props
Expand All @@ -137,7 +137,6 @@ const Checkbox: React.FC<Props> = ({
flow={flow}
cross={cross}
>
{label && <Label label={label} secondary={secondaryLabel} disabled={disabled} as="span" />}
<CheckboxWrapper>
<Input
aria-checked={checked}
Expand All @@ -151,6 +150,7 @@ const Checkbox: React.FC<Props> = ({
<Icon as={HiCheck} />
</CheckMark>
</CheckboxWrapper>
{label && <Label label={label} secondary={secondaryLabel} disabled={disabled} as="span" />}
</FormField>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FormField/FormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const FormField: React.FC<Props> = ({
main = 'stretch',
cross = 'stretch',
flow,
display,
display = 'inline',
space = 'xs',
css,
style,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Switch/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const Switch: React.FC<Props> = ({
secondaryLabel,
space = 'sm',
display = 'inline',
cross = 'center',
cross,
disabled,
...props
}) => {
Expand Down

1 comment on commit a99db40

@vercel
Copy link

@vercel vercel bot commented on a99db40 Oct 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.