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

VoiceOver doesn't announce details element's role and states #4030

Closed
selfthinker opened this issue Aug 9, 2024 · 3 comments
Closed

VoiceOver doesn't announce details element's role and states #4030

selfthinker opened this issue Aug 9, 2024 · 3 comments
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria

Comments

@selfthinker
Copy link
Contributor

selfthinker commented Aug 9, 2024

This issue is from the accessibility audit of GOV.UK Frontend components by DAC in July 2024.

DAC's description

  • Page: Details
  • WCAG reference: none (usabililty)
  • Issue ID: DAC_Usability_Detail_Component_01

For users of screen reading assistive technologies the details component does not convey its state or functionality for users navigating with VoiceOver.

Screenshot of a page using the details component

Screen reader comments:

“A details component was present on the page which expanded and collapsed content when selected in relation to an issue with the e-mail. However, with VoiceOver this item did not announce either as a link or as a button and did not advise me of when content was collapsed or expanded.
I was not immediately aware that the item was selectable and would have been unable to identify the component to select when browsing out of context.
Ensuring that the item announces as either a link or as a button and clearly advises me of whether content collapses or expands will prevent any difficulty and will ensure that I can access the content. In my opinion it may be better to use an accordion feature rather than this details component as the accordion works with all screen reader software”

DAC's proposed solution

Consider using a button for the default detail component as this will mean it is recognised by and will convey its correct state to all assistive technologies.

Other potential solutions

This is a known issue with VoiceOver. This happens with all native HTML <details> elements, irrespective of implementation.

We don't know yet what the best solution would be, we need to discuss and explore this further first.
We might need to change the guidance to refer to the known issues.
Another option is to lobby for making Apple fix the bug in VoiceOver.

Related issues

Additional instances

Although the details component is used on multiple pages throughout the website, it is always the same component, so will only need to be fixed once.

Needed roles

Frontend developer, content designer

@querkmachine
Copy link
Member

For the sake of clarity, can we check which browsers this was tested in, and also whether it's specific to macOS VoiceOver or is also an issue with iOS VoiceOver?

@selfthinker
Copy link
Contributor Author

@querkmachine, nearly all of the previous issues specifically mention iOS. But I tested just to double check. I can confirm it is only a problem with VoiceOver on iOS. There is no other real browser on iOS other than Safari. (From what I remember, all the other browsers use Safari's rendering engine.)

@owenatgov
Copy link
Contributor

Closing this via alphagov/govuk-frontend#5310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility audit july 2024 Issues from July 2024 external accessibility audit against WCAG 2.2 criteria
Projects
Status: Backlog 🏃🏼‍♀️
Development

No branches or pull requests

3 participants