content
content copied to clipboard
How to build custom form controls: JS example is not accessible
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_build_custom_form_controls
What specific section or headline is this issue about?
With JS
What information was incorrect, unhelpful, or incomplete?
When custom form controls are created they must be keyboard accessible. The select that ges focus is offscreen for screen readers and not available for keyboard users
What did you expect to see?
accessible examples
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/learn/forms/how_to_build_custom_form_controls - MDN URL: https://developer.mozilla.org/en-US/docs/Learn/Forms/How_to_build_custom_form_controls
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn/forms/how_to_build_custom_form_controls/index.md
- Last commit: https://github.com/mdn/content/commit/289d6314f3368aa3e28524e7d090f6e9c704e3b1
- Document last modified: 2023-11-28T20:48:44.000Z
I’m planning to work on improving the JavaScript example to ensure the custom form control is keyboard accessible and screen-reader friendly, and aligns with current accessibility best practices.