Skip to content

Commit

Permalink
fix aria label override bug (#238186)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Jan 17, 2025
1 parent 0d57cf5 commit f672ef9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f672ef9

Please sign in to comment.