Skip to content

Commit 5ccdaed

Browse files
committed
fix(react): editor missing accessible name
1 parent a68a626 commit 5ccdaed

File tree

1 file changed

+1
-0
lines changed
  • packages/components/react/src/core/CodeMirrorEditor

1 file changed

+1
-0
lines changed

packages/components/react/src/core/CodeMirrorEditor/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function newEditorState(
208208
return EditorState.create({
209209
doc: content,
210210
extensions: [
211+
EditorView.contentAttributes.of({ 'aria-label': 'Editor' }),
211212
EditorView.domEventHandlers({
212213
scroll: debounce((_event, view) => {
213214
onScrollRef.current?.({ left: view.scrollDOM.scrollLeft, top: view.scrollDOM.scrollTop });

0 commit comments

Comments
 (0)