Skip to content

Commit

Permalink
hover widgets: use role tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Apr 13, 2020
1 parent a5e2f96 commit d8da943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/editor/contrib/hover/hoverWidgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class ContentHoverWidget extends Widget implements IContentWidget {

this._domNode = document.createElement('div');
this._domNode.className = 'monaco-editor-hover-content';
this._domNode.setAttribute('role', 'tooltip');

this.scrollbar = new DomScrollableElement(this._domNode, {});
this._register(this.scrollbar);
Expand Down Expand Up @@ -178,7 +179,7 @@ export class GlyphHoverWidget extends Widget implements IOverlayWidget {
this._domNode = document.createElement('div');
this._domNode.className = 'monaco-editor-hover hidden';
this._domNode.setAttribute('aria-hidden', 'true');
this._domNode.setAttribute('role', 'presentation');
this._domNode.setAttribute('role', 'tooltip');

this._showAtLineNumber = -1;

Expand Down

0 comments on commit d8da943

Please sign in to comment.