Repository navigation
[WIP] Algolia DocSearch - #128
andrewgarner wants to merge 1 commit into
Conversation
|
After we tried this last week, @andrewgarner had a chat with @fofr about this and he raised some accessibility issues. I emailed with one of the people behind DocSearch and they pointed me to the recent work Kaelig (Saleforce engineer) had done to improve the accessibility: https://medium.com/@kaelig/making-open-source-accessible-for-all-8131429913b1 Some interesting PRs: algolia/autocomplete#148 and algolia/docsearch#164 It looks like VoiceOver Chrome & Safari are still problematic though. @fofr do you see any way to help them with these issues? I'm tempted to go for this solution because it's such a better experience than using Google search. We'll learn a lot from it too if we want to implement search ourselves in the tech-docs-template (alphagov/tech-docs-template#66). |
|
A good starting point is to assess the tool against the criteria defined here: |
|
@andrewgarner The demos in http://autocompletejs-a11y.surge.sh/test/playground.html test significantly better than the versions we were looking at. Are the accessibility improvements in the latest shipped version? Edit: The "Multi-sections auto-complete" in that demo has the same problem – the autocomplete results aren't announced by VoiceOver when navigating using arrow keys, as we witnessed when testing. |
This adds [Algolia DocSearch][al]. It's a free service used by prominent projects such as React, Stripe and Scala. We have an account set up, which is configured in https://github.com/algolia/docsearch-configs/blob/master/configs/publish ing_service_gov_uk.json. We previously discussed this in #128. We didn't go for this then because there were questions about accessibility. I think it would make sense to implement it now after all because the Google is very slow, causing new pages to be indexed weeks after first being published. [al]: https://community.algolia.com/docsearch
Work in progress. The search results are not read out by a screen reader when tabbed through.
See https://trello.com/c/vSbk1HoF/51-add-search-to-docs & alphagov/tech-docs-template#66