mozilla / remote-newtab

Remotely-hosted New Tab Page
https://mozilla.github.io/remote-newtab/src/
Mozilla Public License 2.0
15 stars 7 forks source link

Search Widget: implement keyboard navigation and accessibility #188

Closed rlr closed 8 years ago

rlr commented 8 years ago

f? @k88hudson

k88hudson commented 8 years ago

Hmm, I'm thinking we might want to take a different approach to structuring this in order to make it a bit less intense:

This is a great start!

rlr commented 8 years ago

yeah. at this point it doesn't make sense to have two separate components for them, I agree. making it all more like a form with form elements is an awesome idea.

rlr commented 8 years ago

Just vidyo'd with @k88hudson... Next steps:

rlr commented 8 years ago

OK, ^^ I've combined the two modules into one and went through some of the feedback. I didn't fix the nasty keypress handler code yet in case we are lucky and can remove it...

So what's next? Do we want to show this to MarcosZ or something else? Behavior-wise and a11y attribute-wise, this is pretty close to what is in about:home, current about:newtab and the search box. And it follows the blog post MarcosZ pointed out (role=listbox and role=options).

marcoscaceres commented 8 years ago

this is pretty close to what is in about:home, current about:newtab and the search box.

FWIW, I don't know if anyone ever checked about:newtab's original code for accessibility. I would be cautious about using that as any sort of benchmark. Same with the search box - might be wrong, but the original search code seemed like a total hack.

rlr commented 8 years ago

FWIW, I don't know if anyone ever checked about:newtab's original code for accessibility.

Probably not. The only part that seems to be accessible is the search box.

Same with the search box - might be wrong, but the original search code seemed like a total hack.

MarcosV pointed us to about:home which has the same search box as about:newtab and the top search box that is part of the chrome. And playing with it and looking at the aria/role stuff, it's exactly what he suggests in https://www.marcozehe.de/2014/03/11/easy-aria-tip-7-use-listbox-and-option-roles-when-constructing-autocomplete-lists/

k88hudson commented 8 years ago

Ok looks way better R+

rlr commented 8 years ago

1a98c02fc9354ce9c8281974479e64ff03ca325d