Skip to content
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

Focus order of pseudo-element scroll markers #21

Open
flackr opened this issue Apr 8, 2024 · 1 comment
Open

Focus order of pseudo-element scroll markers #21

flackr opened this issue Apr 8, 2024 · 1 comment

Comments

@flackr
Copy link
Owner

flackr commented Apr 8, 2024

What should the focus order of the generated scroll markers be? Currently what's implemented in the polyfill puts them immediately after the scrollable area, but the tree order for pseudo elements would usually place them immediately after their originating element.

there are a few options here:

  1. Immediately before the scrollable area.
  2. Immediately after the scrollable area.
  3. In the order of their originating DOM elements.

I suspect that there are use cases where you would expect 1 (tab-like interfaces) or 2 (marker-like interfaces) depending on where visually the scroll markers appear.

This could be a little odd in that the only tabbable scroll marker, the active one, could be either before or after the content you have focused in the scroller.

@flackr flackr changed the title Focus order of scroll markers Focus order of pseudo-element scroll markers Apr 8, 2024
@argyleink
Copy link
Contributor

Also, the focus order of the next/prev buttons are in this tab flow too, should the buttons go before or after the markers or before or after the focusable scroller? do the a11y guidelines have any answers for us?

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

No branches or pull requests

2 participants