Skip to content

Commit

Permalink
fix: FormField label margin too large, button reset (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar authored Oct 13, 2023
1 parent 49c65e0 commit b5197ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/FormField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function FormFieldRef(
fontWeight="600"
flexShrink={0}
flexGrow={1}
margin={0}
{...labelProps}
>
{label}
Expand Down
3 changes: 3 additions & 0 deletions src/stories/FormField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,15 @@ export const Caption = AllSizesTemplate.bind({})

Caption.args = {
label: 'Password',
caption: 'A short caption',
}

export const LongCaption = AllSizesTemplate.bind({})

LongCaption.args = {
label: 'Label',
caption:
'This will probably truncate, because it is ever so so longer than usual.',
}

export const HintText = AllSizesTemplate.bind({})
Expand Down
3 changes: 2 additions & 1 deletion src/theme/resets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ export const resetPartials = {
padding: 0,
font: 'inherit',
cursor: 'pointer',
outline: 'inherit',
outline: 'unset',
alignItems: 'unset',
appearance: 'none',
},
list: {
margin: 0,
Expand Down

0 comments on commit b5197ea

Please sign in to comment.