Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide what and how to announce when a file is chosen #4414

Open
3 tasks
Tracked by #4242
selfthinker opened this issue Jan 8, 2025 · 0 comments
Open
3 tasks
Tracked by #4242

Decide what and how to announce when a file is chosen #4414

selfthinker opened this issue Jan 8, 2025 · 0 comments
Assignees

Comments

@selfthinker
Copy link
Contributor

selfthinker commented Jan 8, 2025

What

With the native file upload input, not all screen readers always announce the chosen file: JAWS and NVDA both with Chrome and Firefox, VO on macOS with Safari (Chrome seems to be fine).

Our solution currently doesn't announce the file name. But it probably should.

What it could say:

  • just the file name
  • the file name plus something like "selected"
  • the file name plus the page title (because the user had left the browser window just before, but it might say that anyway)
  • the file name plus the page title plus the input label (but it might say that anyway)
  • something else?

When using the native file input with a screen reader it usually reads quite a lot of things (I think because it got focus back to the browser window) which is quite verbose. It's not a good idea to emulate a specific screen reader directly because they all say wildly different things. It makes sense to say the gist of what they all say.

Why

To let screen reader users know they have successfully selected a file and which file it was.
Also to meet WCAG 2.2 SC 4.1.3 Status Messages.

Who needs to work on this

Accessibility specialist, maybe a content designer

Who needs to review this

We'll review the decision as a team in a decision log meeting

Done when

  • Options with their pros and cons documented
  • Researched what other implementations do
  • Decision made and logged
@selfthinker selfthinker moved this to Backlog 🏃🏼‍♀️ in GOV.UK Design System cycle board Jan 8, 2025
@selfthinker selfthinker changed the title Decide what is announced when a file is chosen or not, including the file name [Anika to create issue] Decide what to announce when a file is chosen Jan 8, 2025
@selfthinker selfthinker self-assigned this Jan 8, 2025
@selfthinker selfthinker moved this from Backlog 🏃🏼‍♀️ to In progress 📝 in GOV.UK Design System cycle board Jan 14, 2025
@selfthinker selfthinker changed the title Decide what to announce when a file is chosen Decide what and how to announce when a file is chosen Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress 📝
Development

No branches or pull requests

1 participant