You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
ARIA input fields do not have accessible names #1127
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.
I'm not certain what the correct fix would be, but perhaps something like an aria-label attribute with a (configurable?) value of 'CodeMirror editor' would address it.
You can use contentAttributes.of({"aria-label": "some meaningful label"}) to do this. A default label would not really help much (it'd know nothing of the context or language in which the editor is used, and not do much beyond hiding the warning), so the library intentionally doesn't add one.
Activity
marijnh commentedon Apr 11, 2023
You can use
contentAttributes.of({"aria-label": "some meaningful label"})to do this. A default label would not really help much (it'd know nothing of the context or language in which the editor is used, and not do much beyond hiding the warning), so the library intentionally doesn't add one.