WordPress / wp-movies-demo

Demo of the Interactivity API
https://wpmovies.dev
GNU General Public License v2.0
195 stars 42 forks source link

Fix: add aria-live region to query block so that the live updating results are announced to screen readers #28

Closed fabiankaegy closed 1 year ago

fabiankaegy commented 1 year ago

This fixes an accessibility issue with the SPA search. When you use a screen reader like Voice over and use the search you previously got no indication that the search results were updating.

Ideally this would also use a directive to get the number of results found.

I also tried to add some content to the "No Results" block in the query and with the client site navigation this never gets rendered 🤔

michalczaplinski commented 1 year ago

I was not familiar with this use of ARIA! Thanks Fabian! 👍