Skip to content

Commit

Permalink
Remove setting aria-hidden
Browse files Browse the repository at this point in the history
Chromium actively ignores this attribute on file inputs and throws a warning in the console
  • Loading branch information
querkmachine committed Oct 21, 2024
1 parent 8c493c8 commit 6ab7ef8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ab7ef8

Please sign in to comment.