BlindGuyNW 8 points 4y ago
I think there's a few fundamental misunderstandings here. You're trying to use highlighting as a shorthand for getting the screen reader to read a specific bit of text, which in reality is totally not how blind people will actually use your site.
There are plenty of people, myself included, who use the Mac and Windows screen readers on a daily basis.
My suggestion to you is to outsource your screen reader testing to people who know how these things work. You might have to do a lot less work than you think, and you avoid running into weird dead ends like this one.
I would be happy to discuss further privately if you have specific questions.
flameborn 0 points 4y ago
Hello,
I am not entirely sure what the problem is.
A screen reader user would not use the mouse to hover over elements, I assume you meant the mouse when you said hovering over the button.
Elements on a webpage are either navigated to via VoiceOver or other screen readers via the *tab* key, which is a standard browser feature, or via screen reader specific commands, e.g. *cmd+option+arrows*, or *cmd+option+ctrl+b*, if it is a button specifically.
Unless a screen reader user receives feedback about the physical position of any element on screen, navigating via the mouse does not make much sense.
It is an entirely different issue if your button is not a standard HTML button, but for example just a *div*. In this case screen readers would need to know that that particular item is a button. You can use ARIA for this.
If notifying the user about button text is important, for whatever reason, you can do this two ways: Most screen readers have a feature to read the text under the mouse, for example NVDA under Windows can do this nicely. The other option is to detect whether the mouse is positioned on an item and notify the user via ARIA alerts.
In theory, if you are focusing on screen readers, whatever you can navigate to either via *tab* or the VoiceOver commands on the Mac will speak and people should be able to interact with it. This of course depends on the control type as well, but generally it holds.
Hope this helps.