Skip to content

Commit

Permalink
fix: add tabindex to editor
Browse files Browse the repository at this point in the history
This is required to satisfy the axe-core tool,
even though the focus works fine without tabindex.
  • Loading branch information
barmac committed Jun 18, 2024
1 parent 7c8be36 commit 0fb577a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/src/app/tabs/json/CodeMirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export default function create() {
tabSize,
searchExtension,
EditorView.contentAttributes.of({
'aria-label': 'JSON editor'
'aria-label': 'JSON editor',
'tabindex': 0
}),
...extensions
]
Expand Down
3 changes: 2 additions & 1 deletion client/src/app/tabs/xml/CodeMirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export default function create() {
tabSize,
searchExtension,
EditorView.contentAttributes.of({
'aria-label': 'XML editor'
'aria-label': 'XML editor',
'tabindex': 0
}),
...extensions
]
Expand Down

0 comments on commit 0fb577a

Please sign in to comment.