Skip to content

Commit 5bdb944

Browse files
authoredJun 20, 2023
fix: gutter tooltip class fix (#5211)
1 parent 538b18c commit 5bdb944

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/mouse/default_gutter_handler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,18 +203,19 @@ class GutterTooltip extends Tooltip {
203203
var tooltipContent = [].concat(annotationMessages.error, annotationMessages.warning, annotationMessages.info).join("<br>");
204204

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

209208
if (!this.isOpen) {
210209
this.setTheme(this.editor.renderer.theme);
210+
this.setClassName("ace_gutter-tooltip");
211211
}
212212

213213
this.show();
214214
this.editor._signal("showGutterTooltip", this);
215215
}
216216

217217
hideTooltip() {
218+
this.$element.removeAttribute("aria-live");
218219
this.hide();
219220
this.editor._signal("hideGutterTooltip", this);
220221
}

0 commit comments

Comments
 (0)
Please sign in to comment.