hypothesis / product-backlog

Where new feature ideas and current bugs for the Hypothesis product live
118 stars 7 forks source link

Screen reader does not announce when new/updated annotations are available #1422

Closed mattdricker closed 1 year ago

mattdricker commented 1 year ago

This feedback comes out of Accessibility Web Audit from UC Berkeley.

Current behavior

When new annotations are posted to the document/group currently loaded, Hypothesis shows an "updates available" button at the top of the sidebar. However, the appearance of this button is not announced by the screen reader.

Screen Shot 2023-02-22 at 10 15 08 AM

Expected behavior

Screen reader will announce that there are new/updated annotations available to be loaded.

This is the feedback from the review:

Screen reader did not know that the screen was updated.

Use polite alert.

This was additional feedback that I believe is no longer an issue:

Icon looks like a download or power button (“power download”).The button has a title attribute but those do not help keyboard-only users.

Use visible text such as “New.”

mattdricker commented 1 year ago

@acelaya awesome work getting this landed! I heard through the grapevine that we've now also got a new keyboard shortcut to load the new annotations 🎉

So I can best get this written up for the end-user who raised this issue, can you quickly tl;dr (or point me to the best existing summary) of how everything has come together and any specifics on the kb shortcut.

acelaya commented 1 year ago

Sure! (Actually I intended to share this on our changelog channel, but I got distracted with other tasks).

The testing steps described on this PR more or less cover the whole flow, but to summarize, we have done the next improvements:

Let me know if that clarifies it.

mattdricker commented 1 year ago

This is perfect. Thank you!