Closed rlr closed 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!
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.
Just vidyo'd with @k88hudson... Next steps:
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).
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.
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/
Ok looks way better R+
1a98c02fc9354ce9c8281974479e64ff03ca325d
f? @k88hudson