Skip to content

Illogical focus order in sidebar pattern #2282

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

Open
kimisgold opened this issue Apr 1, 2025 · 0 comments
Open

Illogical focus order in sidebar pattern #2282

kimisgold opened this issue Apr 1, 2025 · 0 comments
Labels

Comments

@kimisgold
Copy link
Member

Initially reported in omeka-s-modules/FacetedBrowse#60.

When adding a new facet, keyboard users must tab through edit and delete buttons for any and all existing facets before being able to navigate the sidebar. Tabbing away from the Facets field set moves focus to the "Add a column" dropdown, followed by edit and delete buttons for any and all existing columns. These should not be in the focus order after the "Add" button for a facet has been activated and the sidebar has been opened. Instead, focus should, after activation, move directly to the sidebar. Elements outside of the sidebar may need to be deemed inert while the sidebar is open; aria-modal or aria-hidden attributes may otherwise be appropriate here. A visual of the focus order is as follows:
Screenshot of an Edit Category page of the Faceted Browse module. Configure facet sidebar is open. Numbers are overlaying the page to represent the focus order

Closing the "Configure facet" sidebar via the "Close" or "Set facet" buttons causes focus to move to the container of the page, followed by the footer elements. This is not a logical order. As per SC 2.4.3, closing the sidebar via the "Close" button, which essentially cancels the operation, should instead move focus back to the original trigger element, the "Add" button. Closing via the "Set facet" button should move focus to the edit button for the newly added facet.

All of the above is also true for configuring and setting columns (less the tabbing stops in the Columns field set).

This pretty much applies to any area that uses the sidebar pattern, especially those where the sidebar is collapsible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant