You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve accessibility of the AJAX search (aria-live, focus, loader)
After every AJAX filter/sort/page change the whole #search-form node is
swapped, which was a triple problem for assistive-technology users.
- Wrap the hits count in a role=status aria-live=polite region so the
updated "N results" is announced after each update.
- Give the loader overlay role=status and a translated aria-label
("Loading results…", added to all 12 locales) so "loading" is conveyed.
- In search.js #replaceContent(): record the active element's id/name
before the swap and restore focus to the equivalent element afterwards,
falling back to focusing the results region (tabindex=-1) so focus is
never dumped back on <body>.
Closes#133
0 commit comments