<Label> element is the text in the drop target "Click to choose a file"
I18n strings changed to indicate "Click" behavior
Context for reviewers
We CAN disable the file input component's focus and setaria-hidden and use the label's click through behavior to trigger the browser's picker -- but it means coding some custom javascript to ensure the space / enter keys work when tabbing through page elements. See this page for a bit of info on the kind of work we're discussing
Testing
Go through the page flow to /upload
Turn on your screen reader
Tab through the page to the file picker
Hear (or see with visual cues in the screen reader) "Click to choose a file to upload", of type "button"
This page currently passes Lighthouse accessibility as well
… Updating i18n text
Ticket
https://wicmtdp.atlassian.net/browse/PRP-340
Changes
<Label>
element<Label>
element is the text in the drop target "Click to choose a file"Context for reviewers
Testing
/upload
This page currently passes Lighthouse accessibility as well