From f672ef982e585803eb25aeb64dcf314a225c0f34 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Fri, 17 Jan 2025 16:33:30 -0600 Subject: [PATCH] fix aria label override bug (#238186) fix #238183 --- .../chat/browser/attachments/implicitContextAttachment.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts b/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts index dfff8cee32bbc..73ab2960823fa 100644 --- a/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts +++ b/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts @@ -79,7 +79,6 @@ export class ImplicitContextAttachmentWidget extends Disposable { this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), hintElement, title)); const buttonMsg = this.attachment.enabled ? localize('disable', "Disable current file context") : localize('enable', "Enable current file context"); - this.domNode.ariaLabel = buttonMsg; const toggleButton = this.renderDisposables.add(new Button(this.domNode, { supportIcons: true, title: buttonMsg })); toggleButton.icon = this.attachment.enabled ? Codicon.eye : Codicon.eyeClosed; this.renderDisposables.add(toggleButton.onDidClick((e) => {