expounder icon indicating copy to clipboard operation
expounder copied to clipboard

The links should be discoverable by accessibility software

Open skorokithakis opened this issue 4 years ago • 9 comments

Currently they look just like text to screen readers.

skorokithakis avatar Feb 24 '21 07:02 skorokithakis

@skorokithakis I think one solution may be "focus" event. When screen reader focus on the expounder, the expounded should appear. But what if the human "reader" does not want the expounded explanation? How to control that for every instance of epounded element?

luciandex avatar Aug 31 '22 05:08 luciandex

@skorokithakis , up! 🙂

luciandex avatar Oct 25 '22 10:10 luciandex

Sorry, yes. I don't really know much about how accessibility works on the frontend here, so I can't really say :/

skorokithakis avatar Oct 25 '22 12:10 skorokithakis

Perhaps, we can set a shortcut key combination. When is pressed, the expounded will open, then screen reader can read the text. I am not sure if it's working, but I will try to achieve this. The steps:

  • reader focus on a word that have explanation
  • the user can be notified by a beep (?) that he can get an explanation (and the reader will wait 2-4 seconds)
  • the user press keys combination
  • the reader parse the explanation and continuing with the text after

luciandex avatar Oct 25 '22 18:10 luciandex

Hm, isn't there some ARIA attribute that can do the right thing here?

skorokithakis avatar Oct 25 '22 18:10 skorokithakis

I know that. I will try something in that direction first. I though that can't be achieve by that apriori.

luciandex avatar Oct 25 '22 18:10 luciandex

But, as I notice above, what can be done if a user don't want to "read" explanantion? And even if the exponded has an aria attribute, the reader will try to read a hidden text. I don't think this is possible.

luciandex avatar Oct 25 '22 18:10 luciandex

Yeah, it sounds very tricky... What does the screen reader read when something is a link?

skorokithakis avatar Oct 25 '22 19:10 skorokithakis

Here are some links regarding certain ARIA roles, states and properties worth reading that might help with the issue here:

  • https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tooltip_Role
  • https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-haspopup
  • https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded

The aria-expanded one looks promising 🤔

stelabouras avatar Oct 26 '22 09:10 stelabouras