fix(a11y): notifications not working on click events#8017
fix(a11y): notifications not working on click events#8017wisniewski94 wants to merge 1 commit intonolimits4web:masterfrom
Conversation
|
Hi. This PR breaks previous behavior, and notifications are not sent anymore (if nav buttons are not BUTTON element) when nav button is focused and Enter/Space pressed. Now it only works on mouse clicks. Plus why do we need the notification on mouse clicks at all? Because as i guess user already sees what he clicks on with a mouse, which maybe not the case with the keyboard navigation |
|
@nolimits4web thanks for the feedback!
That's not the case with mobile screen readers that still use taps instead of keystrokes. On the other hand, sight-impaired users may still use a mouse and a screen reader. All screen readers support mouse use (announcements are made on hover). This is because most websites are keyboard inaccessible.
This is a bit off - I believe it should work on all nav changes. Does it mean these events are fired in very specific cases? The last time I checked, it worked fine, but maybe I was rushing it too much. I will double-check. |
|
Task nolimits4web/T0GGLES-445 was linked to the issue |
|
The issue was unlinked from the task nolimits4web/T0GGLES-445 |
Closes #8016
This change enhances screen reader support for touch devices. Currently, notifications work only on desktop by firing a notification for space or enter keystrokes. This should change the behavior to notify on the event rather than a specific input type.