Skip to content

Commit

Permalink
feat: Input label accessibility for signature image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscooke committed Aug 28, 2020
1 parent 00ebf3d commit 9861335
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
13 changes: 8 additions & 5 deletions app/containers/Forms/CertificationSignature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ export const CertificationSignature: React.FunctionComponent<Props> = ({
{submitted ? (
<span style={{color: 'green'}}>Signed Successfully!</span>
) : (
<input
accept="image/*"
type="file"
onChange={(e) => readImage(e)}
/>
<label>
Upload an existing signature image:
<input
accept="image/*"
type="file"
onChange={(e) => readImage(e)}
/>
</label>
)}
</Col>
<Col md={{offset: 2, span: 3}}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ exports[`The Confirmation Component matches the snapshot 1`] = `
<Col
md={6}
>
<input
accept="image/*"
<label
className="jsx-2877110858"
onChange={[Function]}
type="file"
/>
>
Upload an existing signature image:
<input
accept="image/*"
className="jsx-2877110858"
onChange={[Function]}
type="file"
/>
</label>
</Col>
<Col
md={
Expand Down

0 comments on commit 9861335

Please sign in to comment.