Govuk-frontend: The Details component is not recognised by voice control

Created on 8 Dec 2020  ·  7Comments  ·  Source: alphagov/govuk-frontend

When using Apple Voice Control, the details component cannot be navigated as an interactive element using the 'show numbers' command. It is simply not recognised as interactive.

It's not just the govuk details component, it looks like Voice Control has an issue with all details components unless you give them a specific role.

Playing around, if you give the summary the role of link or the role of button, it then shows up and can be interacted with.

I know there is an ongoing debate whether it should be a link or a button as it looks like one and behaves like another, but it looks like not giving it a role of anything makes it inaccessible for Voice Control users.

🐛 bug 🔍 investigation accessibility details

All 7 comments

Hi Craig,

Can you confirm exactly which browser(s) and macOS / iOS / iPad OS versions you've tested this with?

Thanks,

Ollie

I was testing it on a MacBook using the following:

  • OS X Catalina: 10.15.7
  • Safari: 14.01

@philsherry made me aware that there is a similar issue with VoiceOver: https://github.com/hmrc/accessibility/issues/25 - presumably the two are linked by the way Apple deals with the <details> tag.

I can generally reproduce this on my mac, but Voice Control generally seems to be behaving oddly (seeing numbers appearing in completely the wrong place, for example). It'd be good to test this in Big Sur as well.

This doesn't seem to be an issue on iOS, where I can interact with the details component using both 'Tap [text from summary element]' and also using 'Show numbers'.

I'd be wary of overriding the native role on the <summary> without a _lot_ of testing as I could see that potentially breaking things in other assistive technologies.

Have you considered raising a bug against Webkit for this? I'd be happy to support you in doing so, if that helps. If you prefer, we can investigate further and write it up on your behalf.

I've not raised bug against webkit before, so if you already have a process for this I'm happy for you to write up. Alternatively, if you don't have capacity and would like me to raise it I'll have a good go! Whatever you think best. Cheers.

Check our VoiceOver issue. There's a WebKit bug raised on there which you may want to reference.

@abbott567 I've raised an issue – see https://bugs.webkit.org/show_bug.cgi?id=220086

Thanks @36degrees

Was this page helpful?
0 / 5 - 0 ratings