diff --git a/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.mjs b/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.mjs index eb696558aa..f59f84eb9c 100644 --- a/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.mjs +++ b/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.mjs @@ -107,8 +107,7 @@ export class FileUpload extends GOVUKFrontendComponent { this.$button = $button this.$status = $status - // with everything set up, apply attributes to programmatically hide the input - this.$root.setAttribute('aria-hidden', 'true') + // Prevent the hidden input being tabbed to by keyboard users this.$root.setAttribute('tabindex', '-1') // Bind change event to the underlying input