mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
add aria label for todo clear button, fix a11y smoketest violation (#292671)
fixes #292665
This commit is contained in:
@@ -199,6 +199,7 @@ export class ChatTodoListWidget extends Disposable {
|
||||
private createClearButton(): void {
|
||||
this.clearButton = new Button(this.clearButtonContainer, {
|
||||
supportIcons: true,
|
||||
ariaLabel: localize('chat.todoList.clearButton', 'Clear all todos'),
|
||||
});
|
||||
this.clearButton.element.tabIndex = 0;
|
||||
this.clearButton.icon = Codicon.clearAll;
|
||||
|
||||
@@ -122,7 +122,9 @@ export function setup(logger: Logger, opts: { web?: boolean }, quality: Quality)
|
||||
// These are used intentionally for selection semantics even though technically not spec-compliant
|
||||
'aria-allowed-attr': ['monaco-list', 'monaco-list-row'],
|
||||
// Some icon buttons have empty aria-label during rendering
|
||||
'aria-command-name': ['codicon-plus']
|
||||
'aria-command-name': ['codicon-plus'],
|
||||
// Todo list widget has clear button nested inside expander button for layout purposes
|
||||
'nested-interactive': ['todo-list-container']
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -158,7 +160,9 @@ export function setup(logger: Logger, opts: { web?: boolean }, quality: Quality)
|
||||
// These are used intentionally for selection semantics even though technically not spec-compliant
|
||||
'aria-allowed-attr': ['monaco-list', 'monaco-list-row'],
|
||||
// Some icon buttons have empty aria-label during rendering
|
||||
'aria-command-name': ['codicon-plus']
|
||||
'aria-command-name': ['codicon-plus'],
|
||||
// Todo list widget has clear button nested inside expander button for layout purposes
|
||||
'nested-interactive': ['todo-list-container']
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user