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

ARIA input fields do not have accessible names #656

Open
datnd99 opened this issue May 20, 2024 · 2 comments
Open

ARIA input fields do not have accessible names #656

datnd99 opened this issue May 20, 2024 · 2 comments

Comments

@datnd99
Copy link

datnd99 commented May 20, 2024

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: codemirror/dev#1127 (comment)

@jaywcjlove
Copy link
Member

If you add it, how do you think about internationalization? @datnd99

@datnd99
Copy link
Author

datnd99 commented Jun 8, 2024

If you add it, how do you think about internationalization? @datnd99

Unfortunately, In my case, I just need add aria-label to by pass Lighthouse test, do not require implement internationalization

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

No branches or pull requests

2 participants