Skip to content

Commit

Permalink
fix: gutter tooltip class fix (#5211)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoreman authored Jun 20, 2023
1 parent 538b18c commit 5bdb944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mouse/default_gutter_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,19 @@ class GutterTooltip extends Tooltip {
var tooltipContent = [].concat(annotationMessages.error, annotationMessages.warning, annotationMessages.info).join("<br>");

this.setHtml(tooltipContent);
this.setClassName("ace_gutter-tooltip");
this.$element.setAttribute("aria-live", "polite");

if (!this.isOpen) {
this.setTheme(this.editor.renderer.theme);
this.setClassName("ace_gutter-tooltip");
}

this.show();
this.editor._signal("showGutterTooltip", this);
}

hideTooltip() {
this.$element.removeAttribute("aria-live");
this.hide();
this.editor._signal("hideGutterTooltip", this);
}
Expand Down

0 comments on commit 5bdb944

Please sign in to comment.