Query suggestion accessibility improvements and fixes#50
Conversation
|
@cfoss-coveo @bblaisATcoveo Please add |
|
Also, please add an line that will force the search's input type to The more detailed reason is that the role CC: @ipaksc |
|
@GormFrank This is ready for another look. For your information, here's the logic we're using when applying attributes to the search box. Default search box attributes, applied on page load
Query Suggestions enabled (i.e.,
Query Suggestions enabled, when the query suggestions dropdown opens
Query Suggestions enabled, when items are highlighted (via cursor or keyboard controls)
Query Suggestions enabled, when the query suggestions dropdown closes
|
GormFrank
left a comment
There was a problem hiding this comment.
@cfoss-coveo Thank you :) Changes required! CC: @bblaisATcoveo
|
@GormFrank Pushed an update that addresses your feedback. Ready for another look! |
GormFrank
left a comment
There was a problem hiding this comment.
@cfoss-coveo Just small details remaining, and then we'll be good to go :)
Recommended change Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
Recommended change Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
Recommended change Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
Recommended change Co-authored-by: Francis Gorman <francis.gorman25@gmail.com>
|
@GormFrank Made the changes. Thanks for using the code suggestions. That made it super easy! |
GormFrank
left a comment
There was a problem hiding this comment.
Just a note on the rationale for some of the design aspect and accessibility/usability:
- The accessibility disclaimer for screen reader users has been added to get away from the WCAG failure F36 with adding a warning before submit. Also, it has been reviewed and improved by our internal Service Canada communications & translation team
- The magnifying glass icon displayed besides each list item (suggestions), which is the same as in the Search submit button, was added as a visual indicator (counter part to the "hidden" accessibility disclaimer mentioned above) to predictably hinting them that clicking on a suggestion will trigger a submit.
|
Test Cases
|
Accessibility and UX improvements:
-If you select a Query Suggestion, it should immediately take you to the results for that item (rather than filling the search input)
Associated tasks: