Skip to content

Commit

Permalink
fix: add accessible names to code editors
Browse files Browse the repository at this point in the history
Closes #4370
  • Loading branch information
barmac committed Jun 18, 2024
1 parent 5592f1e commit 7c8be36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion client/src/app/tabs/json/CodeMirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export default function create() {
language,
tabSize,
searchExtension,
EditorView.contentAttributes.of({
'aria-label': 'JSON editor'
}),
...extensions
]
});
Expand Down Expand Up @@ -153,4 +156,4 @@ export default function create() {
};

return instance;
}
}
5 changes: 4 additions & 1 deletion client/src/app/tabs/xml/CodeMirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export default function create() {
language,
tabSize,
searchExtension,
EditorView.contentAttributes.of({
'aria-label': 'XML editor'
}),
...extensions
]
});
Expand Down Expand Up @@ -153,4 +156,4 @@ export default function create() {
};

return instance;
}
}

0 comments on commit 7c8be36

Please sign in to comment.