content icon indicating copy to clipboard operation
content copied to clipboard

How to build custom form controls: JS example is not accessible

Open estelle opened this issue 2 years ago • 1 comments

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

estelle avatar Dec 23 '23 09:12 estelle

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.

xopsio avatar Jan 31 '26 13:01 xopsio