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

listbox: Should selection follow focus? #910

Open
josepharhar opened this issue Oct 26, 2023 · 3 comments
Open

listbox: Should selection follow focus? #910

josepharhar opened this issue Oct 26, 2023 · 3 comments
Labels
listbox The `<listbox>` element stale

Comments

@josepharhar
Copy link
Collaborator

In this issue, we decided that selection should not follow focus in <selectlist>'s listbox: #742
In this comment, @scottaohara pointed out that maybe selection following focus is useful? #896 (comment)

Is there an ARIA recommendation for this?
Should we provide an attribute or something to switch behaviors?
Should we make selection not follow focus for <selectlist> but make selection follow focus for all <listbox>es which are not used in a selectlist?

@josepharhar josepharhar added the listbox The `<listbox>` element label Oct 26, 2023
@lukewarlow
Copy link
Collaborator

My gut here is selection also shouldn't follow focus for the same reasons it shouldn't in selectlist. It would also be unfortunate to have a disparity between the two.

As you say it'd be interesting to see any aria guidance on this, on the understanding that because this is something novel their recommendation may not be fully applicable.

@scottaohara
Copy link
Collaborator

@lukewarlow if we are doing something truly novel, then a “listbox” we would not be making :)

briefly, as I have another thread started for this topic I’m not ready to merge here, yet. But so long as there is a select element that also can be exposed as a listbox (select size=+1), where it presently and has for decades had selection follow focus (which is the only guidance you’d get from aria btw, follow the host language / platform behavior) then the argument that we should be consistent is already being broken by having selection not follow focus.

sorry there is more to my thought process than this, I can expand on that later. But if consistency is key, then we need to acknowledge we are making something different, and maybe that’s ok. / frees us up to do different things. Like being novel ;)

Copy link

There hasn't been any discussion on this issue for a while, so we're marking it as stale. If you choose to kick off the discussion again, we'll remove the 'stale' label.

@github-actions github-actions bot added the stale label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
listbox The `<listbox>` element stale
Projects
None yet
Development

No branches or pull requests

3 participants