-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
Example custom select is not keyboard focusable #22513
Comments
Hey i want to contribute to this,csn anyone please explain the problem? Thank you |
In the final example "Result", the "Custom controls" component doesn't appear in the keyboard chain. Does that help any? |
What does keyboard focus mean? Like i am not able to get the problem |
Is there some way i can experience it or observe what is going wrong |
Navigate to the page anchor: With the keyboard, press SHIFT + TAB. Keyboard focus moves from the anchor to the "Standard controls" select element under the heading Result. |
when the focus is on result the and we press |
i have corrected this it is now moving to custom controls on pressing |
Screencast from 02-04-23 11:35:37 PM IST.webm |
Screencast looks good, though I'd need to test code in-situ to fully confirm. |
@2kool2 i just changed the tab index in the html , it is working by inspecting the local host mdn website and making the changes there but. Not when i make the same change in the actual codebase |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
What specific section or headline is this issue about?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select#customizing_select_styles
What information was incorrect, unhelpful, or incomplete?
The example is incomplete.
While the custom select options accept tab key interaction, the custom select itself doesn't appear in the keychain and cannot be activated by keyboard.
You have to click with a mouse first, then you can use the tab key.
What did you expect to see?
I expected the custom select to appear in the keychain.
That is, findable and operable via keyboard only.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
Perhaps adding tabindex=0 to the custom select would suffice, but I've not tested.
MDN metadata
Page report details
en-us/web/html/element/select
The text was updated successfully, but these errors were encountered: