Move role=document to xterm element
Feedback in microsoft/vscode#98918 said this could improve the UX on screen readers
This commit is contained in:
@@ -383,6 +383,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
||||
this.element.classList.add('terminal');
|
||||
this.element.classList.add('xterm');
|
||||
this.element.setAttribute('tabindex', '0');
|
||||
this.element.setAttribute('role', 'document');
|
||||
parent.appendChild(this.element);
|
||||
|
||||
// Performance: Use a document fragment to build the terminal
|
||||
|
||||
Reference in New Issue
Block a user