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]: Checkbox tab navigation behavior is strange/doubled. #135

Open
arazni opened this issue Dec 30, 2024 · 0 comments
Open

[Bug]: Checkbox tab navigation behavior is strange/doubled. #135

arazni opened this issue Dec 30, 2024 · 0 comments

Comments

@arazni
Copy link

arazni commented Dec 30, 2024

LumexUI Version

v1.0.0

Description

When tabbing through the checkboxes in the docs, the first tab will highlight the checkbox. Tabbing again will seemingly invisibly select/highlight the checkbox again.

  • Only one instance of the checkbox should be tab-navigable, so the second invisible instance should be removed.

Steps to reproduce

Visit your docs.

Reproduction 1:

Tab over to a checkbox. It will highlight correctly.

Then hit tab one more time.

Hitting space will check or uncheck the checkbox, even though you should've navigated away from it by now.

This implies there's a second instance of the checkbox somewhere.

Reproduction 2:

Tab over to a checkbox. It will highlight correctly.

Space will check it or uncheck it.

However, it will also shift to the "second instance", where it is no longer highlighted.

Expected behavior

Tabbing over a checkbox should only happen once and be highlighted.

This also has strange, though functioning screenreader behavior.

Tabbing onto the checkbox labeled "Option" for the first instance, visible highlight instance reads this way:
clickable Option check box checked Option

Tabbing to the second instance reads this way:
Option check box checked

The second instance sounds better to me, where the first one sounds repetitive and buggy.

A good fix would manage all 3:

  • The visible highlight behavior of the first tab
  • The screenreader behavior of the second tab
  • Reduce down to a single tab to navigate

Notes

No response

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

No branches or pull requests

2 participants