-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remediate sort selection drop-down: interactive controls must not be nested #1089
Comments
here's the response from John Jameson:
@blms I thought you had done some work along the lines of the list box pattern, is that partially implemented? What's your estimate in hours for the two options for the sort dropbox? |
@rlskoeser Thanks so much! Yes, the list box pattern is partially implemented. I'll need to make sure the roles and interactions are 1:1 with that guideline—such as the list getting focus on click, thus allowing immediate keyboard control. One problem is that when a keyboard user interacts with the list and focuses another option, it actually gets selected and thus refreshes the search results; I suppose instead it should only do that on some kind of keypress (related to John's response about "reloading the page immediately on change for any of the filters"). So I would estimate ~3 hours for that. I've already spent 1 hour on making it a select element, I would estimate 1-2 more for putting the finishing touches on that and updating any affected unit tests. Also, if I recall correctly the original DubBot issue was "nested interactive elements," and from a quick glance the only thing I see that matches that is the button inside the |
I think maybe the nested interactive elements are for the search filters. I think we should handle the automatic form submission separately — John said that isn't as serious; it's inconvenient but not a blocker. |
ref #1089 Co-authored-by: rlskoeser <rebecca.s.koeser@princeton.edu>
Revert sort listbox to <select> in search form (#1089)
confirmed fixed on test site by scanning with axe DevTools |
according to dubbot, we're violating https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html
flagged on the sort select trigger
convert to a standard
select
element and style as ableThe text was updated successfully, but these errors were encountered: