We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbfd35 commit 6b3701cCopy full SHA for 6b3701c
packages/ui-source-code-editor/src/SourceCodeEditor/index.tsx
@@ -295,6 +295,14 @@ class SourceCodeEditor extends Component<SourceCodeEditorProps> {
295
parent: this._containerRef
296
})
297
298
+ // from the a11y team:
299
+ // axe devtools and other automated a11y tests both flagging this issue,
300
+ // which can be observed while navigating with keyboard:
301
+ // Ensure elements that have scrollable content are accessible by keyboard
302
+ // To solve this problem, you need to fix at least (1) of the following:
303
+ // Element should have focusable content, Element should be focusable
304
+ this._editorView.scrollDOM.tabIndex = 0
305
+
306
if (autofocus) {
307
this.focus()
308
}
0 commit comments