uiwjs / uiwjs/react-codemirror

ARIA input fields do not have accessible names

Open
#656 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

Describe the issue

While running a Lighthouse audit I saw the following accessibility warning relating to the React CodeMirror editor:

ARIA input fields do not have accessible names

When an input field doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. Learn more about input field labels.

You can easily reproduce it with the React CodeMirror website: https://uiwjs.github.io/react-codemirror/

Is there an option to set aria-labels similar to this comment?
Refer: https://github.com/codemirror/dev/issues/1127#issuecomment-1503175849

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning on the React CodeMirror website and read the linked CodeMirror issue comment first. Trace how the React editor exposes its input to determine whether an accessible name can be configured; done when the reported ARIA warning is resolved and the requested labeling behavior is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.