-
Notifications
You must be signed in to change notification settings - Fork 224
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
Investigation: Why does NVDA read out 'clickable' when reading images #9746
Comments
Investigation report From this StackOverflow's article we understood that this event was being passed down from the parent elements. But this did not explain why only graphics were announcing clickable. We decided to go back to past PR's and understand when we introduced the bug. We noticed how the Glass Promo component was the only component with a graphic element that was not announcing "clickable graphic" in past PR's. Finally, we discovered the following issue reported in 2021 to facebook React. I have essentially added 2 tests image, one outside the "root" division and one just inside the root div but before any other element. And we also observed that we have no keyboard warning appearing in the graphic element outside the root div: We also made a minor discovery where the keyboard warning attached to the graphic element seems to be affected by the LTR and RTL logic 😂 Conclusion React 17 had changes to event delegation https://reactjs.org/blog/2020/08/10/react-v17-rc.html#changes-to-event-delegation Take this simple HTML as an example:
If we run the above and inspect with NVDA we can observe the bug. We reported this behaviour with Facebook React, NVDA, and W3C/aria. |
Updates:
We discovered that all of the above fail to fix our issue for various reasons. However, putting role="presentation" directly in the root div seems to fix the graphic clickable bug. |
React are going to recommend adding role="presentation" natively in the root div facebook/react#20895 (comment) |
We can make the changes ourselves by #9828 |
Describe the bug
When using NVDA with Firefox ESR on Windows 10 it reads out 'clickable' when I read images. Why is this?
To Reproduce
Given I am using NVDA on Windows 10 with Firefox ERS
When I press the down arrow key to read an image
Then 'clickable' is announced along with the alt text and image semantics
Expected behaviour
Clickable should not be announced when I read an image.
The text was updated successfully, but these errors were encountered: