Skip to content

Commit

Permalink
saves
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Dec 16, 2022
1 parent be7eacc commit 962ca5b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/components/src/Checkbox/CheckboxGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Meta, ComponentStory } from '@storybook/react';

import { Checkbox } from './Checkbox';
import { CheckboxGroup } from './CheckboxGroup';
import { FieldBaseGroup } from '../FieldBase/FieldBaseGroup';

export default {
title: 'Components/CheckboxGroup',
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/FieldBase/FieldBase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const Basic: ComponentStory<typeof FieldBase> = args => (
);

export const Complex: ComponentStory<typeof FieldBase> = args => (
<FieldBaseGroup space="small">
<FieldBaseGroup space="medium">
<FieldBase {...args} label="This is my Label">
<input type="text" />
</FieldBase>
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/FieldBase/FieldBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const FieldBase = ({
const { space } = useFieldBaseGroupContext();

return (
<FieldBaseGroup space={space}>
<>
<Box
{...props}
__baseCSS={{
Expand Down Expand Up @@ -95,6 +95,6 @@ export const FieldBase = ({
)}
</Box>
</Box>
</FieldBaseGroup>
</>
);
};
6 changes: 3 additions & 3 deletions packages/components/src/Label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export interface LabelProps extends ComponentProps<'label'> {
space?: keyof typeof LABEL_SPACE;
}
const LABEL_SPACE = {
small: '20%',
medium: '50%',
large: '100%',
small: '10%',
medium: '20%',
large: '50%',
none: 'auto',
};

Expand Down

0 comments on commit 962ca5b

Please sign in to comment.