Skip to content

Commit

Permalink
fix(forms/NewFormikNumberField): ensure that default label is small f…
Browse files Browse the repository at this point in the history
…or number field
  • Loading branch information
sjschlapbach committed Jul 22, 2024
1 parent 720d3a1 commit b7577d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/forms/NewFormikNumberField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,9 @@ export const Styled = () => (
</div>
)

export const SmallLabel = () => (
export const LargeLabel = () => (
<div>
<div>
Formik text area component with a small label (designed e.g. for login
forms)
</div>
<div>Formik text area component with a large label</div>
<Formik
initialValues={{
name: '',
Expand All @@ -341,7 +338,7 @@ export const SmallLabel = () => (
required
name="name"
label="Label"
labelType="small"
labelType="large"
className={{ root: 'mb-1' }}
placeholder="Placeholder"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/forms/NewFormikNumberField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function FormikNumberField({
value,
onChange,
label,
labelType,
labelType = 'small',
placeholder,
precision,
min,
Expand Down

0 comments on commit b7577d6

Please sign in to comment.