-
Notifications
You must be signed in to change notification settings - Fork 242
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
Comments
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? |
@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.) |
Closing this via alphagov/govuk-frontend#5310 |
A quick summary of what we have done... After we investigated this, we found that there was a problem with our specific implementation using There are multiple VoiceOver bugs involved. While we could fix the issue for versions 17 and 18, we couldn't find a fix for older versions (which was due to a different VoiceOver bug). I have summarised all the technical details around the details element in this JSbin, including testable code. |
This issue is from the accessibility audit of GOV.UK Frontend components by DAC in July 2024.
DAC's description
For users of screen reading assistive technologies the details component does not convey its state or functionality for users navigating with VoiceOver.
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
display: inline-block
reported-bugs#64Additional 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
The text was updated successfully, but these errors were encountered: