VoiceOver doesn't announce details element's role and states #4030
Labels
accessibility
audit july 2024
Issues from July 2024 external accessibility audit against WCAG 2.2 criteria
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: