ten1seven / what-input

A global utility for tracking the current input method (mouse/pointer, keyboard or touch).
https://ten1seven.github.io/what-input
MIT License
1.35k stars 89 forks source link

VoiceOver (iOS) not reading ARIA state changes when what-input is loaded #86

Open davepenfold opened 5 years ago

davepenfold commented 5 years ago

I've created a test case here:

https://codesandbox.io/s/4wlrq70km0

Test 1

Steps to reproduce:

Open https://4wlrq70km0.codesandbox.io/ in Safari on your iOS device. Tested with version 11.4.1.

Expected results:

VoiceOver should read button as "Click me, collapsed"

Actual results:

VoiceOver does not announce the aria-expanded change

Test 2

ten1seven commented 5 years ago

Hi @davepenfold, thanks for reporting this. I checked out your example last night on my phone that's been upgraded to iOS 12 and found that double tapping the screen or directly on the button to initiate a click on the button produced what I would expect as a correct result of VoiceOver announcing "click me, expanded" and "click me, collapsed". A single click directly on the button did not activate it, but simply announced the button and its state.

Is it possible that the behavior that you're seeing is an issue with VoiceOver that was changed in iOS 12? Are you planning on upgrading in the near future so you can test on your end?