Skip to content

Commit

Permalink
add label to the FileUpload component due to failing a11y tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Pentecost authored and Richard Pentecost committed Feb 27, 2024
1 parent d12e100 commit ced272e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/components/Form/elements/FieldFileUpload/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ const FieldFileUpload = ({ name, required, label }) => {
})

return (
<FieldWrapper name={name} label={label}>
<FieldWrapper name={name}>
<FileUpload
name={name}
onChange={onChangeFileUpload}
onBlur={onBlur}
meta={{ error, touched }}
/>
>
<strong>{label}</strong>
</FileUpload>
</FieldWrapper>
)
}
Expand Down

0 comments on commit ced272e

Please sign in to comment.