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

[Bug Report][3.3.1] bug(VList): clickable list item are not keyboard focusable when nested in list #17470

Closed
paul-thebaud opened this issue May 26, 2023 · 4 comments
Assignees
Labels
C: VList T: bug Functionality that does not work as intended/expected T: regression Something that used to work but we broke
Milestone

Comments

@paul-thebaud
Copy link
Contributor

Environment

Vuetify Version: 3.3.1
Last working version: 3.2.4
Vue Version: 3.3.4
Browsers: Chrome 113.0.0.0
OS: Linux x86_64

Steps to reproduce

Create a v-list, create v-list-item with href, to or click properties. Those will automatically receive a negative tabindex and therefor won't be keyboard focusable.

Expected Behavior

List item should always be keyboard focusable and should not receive a tabindex attribute.

Actual Behavior

Not focusable.

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

This has a hugh impact on accessibility.
I don't know if I'm missing something about VList configuration (something to request the list to have a "normal" behavior).

@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected T: regression Something that used to work but we broke C: VList labels May 26, 2023
@KaelWD KaelWD self-assigned this May 26, 2023
@KaelWD KaelWD added this to the v3.3.x milestone May 26, 2023
@KaelWD
Copy link
Member

KaelWD commented May 26, 2023

request the list to have a "normal" behavior

Add tabindex="0" to each item. The intention is that only the list is tab focusable, then items are navigated with arrow keys instead.

@paul-thebaud
Copy link
Contributor Author

@KaelWD that's what I'm doing currently as a workarround.
It there any plan to restore the previous behavior?

@KaelWD
Copy link
Member

KaelWD commented May 26, 2023

You can kinda see what's meant to happen if you add tabindex="0" to the list itself instead

@paul-thebaud
Copy link
Contributor Author

Yup thanks. But I want to keep the default browser behavior for kind of elements tree:

  • List
    • List item
      • Anchor
    • List item
      • Anchor

@KaelWD KaelWD closed this as completed in 87de862 May 29, 2023
johnleider added a commit that referenced this issue Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VList T: bug Functionality that does not work as intended/expected T: regression Something that used to work but we broke
Projects
None yet
Development

No branches or pull requests

2 participants