-
Notifications
You must be signed in to change notification settings - Fork 7
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
Selecting view type or filter should not shift focus to the top of the page #2473
Comments
The different view types are actually different web pages. Note the https://exhibits.stanford.edu/a11y-for-soda/browse/san-francisco-buildings?view=list |
Thanks, I see that selecting filters from the sidebar has the same issue. |
@alundgard @jcoyne clicking on those icons actually reloads the page and goes it the equivalent of a new url. Does that change the recommendation or is it the same? |
Yes. That's what I've been trying to say. |
Because each facet/view setting loads a new page, it seems that it's not possible to easily solve this focus issue. Unless you have other ideas, we may need to rely on the skip links (Skip to main content, Skip to search, Skip to first result) to help users to jump to the relevant section of the page. These skip links are present in the Spotlight DOM, but they don't appear when navigating by keyboard tabbing the way they do in other Blacklight applications (Archives, EarthWorks). |
Below is what these skip link options look like in various Blacklight-based systems including a modified version of Exhibits. @alundgard it would be good to know which option would make sense for Exhibits. First, here is a screenshot from a modified version of Exhibits on the search results page: ![]() ![]() ![]() These are screenshots from Spotlight: This is a screenshot from EarthWorks: This is a screenshot from SearchWorks: @alundgard , from the non-exhibits sites above, is there a pattern we would rather be following for Exhibits? For EarthWorks and Spotlight, the skip link options are all listed in a horizontal row. For SearchWorks, the options are all in the same place and the user can toggle between them. Exhibits seems to be doing something similar on the home page when there are only two skip link options (main question and search) but it seems to be a bit of both on the search results page (showing two options in a horizontal row, but giving the option to toggle between options for one of the spots). |
@hudajkhan Thanks for the screenshots.
|
Current behavior
Selecting a view type or filter using the keyboard or screen reader shifts the focus back to the top of the page.
Steps to reproduce
Example page: Spotlight Accessibility for SODA - San Francisco Buildings.
Navigate to the view type buttons with the keyboard or screen reader and make a selection. Also, navigate to the sidebar filters and make a selection.
Possible solution
WCAG Level A: Understanding Success Criterion 3.2.1: On Focus.
SODA recommends moving the focus to the beginning of the updated content (in this case, the exhibit items). Doing so would mean jumping over the Search input field, which sits between the view options and exhibit items. Or, when selecting a filter from the sidebar, focus would jump across sections of the page.
Another possibility may be to leave focus in its current position (at the view type button or sidebar filter), but with an indication that it has been selected (see #2472).
Reported by SODA
The text was updated successfully, but these errors were encountered: