Skip to content

Commit 75ba646

Browse files
committed
1 parent b4dd4d5 commit 75ba646

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/vs/workbench/contrib/accessibility/browser/accessibleView.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class AccessibleView extends Disposable {
9696
if (!domNode) {
9797
return;
9898
}
99-
container.appendChild(domNode);
99+
container.appendChild(this._editorContainer);
100100
this._layout();
101101
this._register(this._editorWidget.onKeyDown((e) => {
102102
if (e.keyCode === KeyCode.Escape) {
@@ -125,9 +125,9 @@ class AccessibleView extends Disposable {
125125
const height = Math.min(.4 * windowHeight, this._editorWidget.getContentHeight());
126126
this._editorWidget.layout({ width, height });
127127
const top = Math.round((windowHeight - height) / 2);
128-
domNode.style.top = `${top}px`;
128+
this._editorContainer.style.top = `${top}px`;
129129
const left = Math.round((windowWidth - width) / 2);
130-
domNode.style.left = `${left}px`;
130+
this._editorContainer.style.left = `${left}px`;
131131
}
132132

133133
private async _getTextModel(resource: URI): Promise<ITextModel | null> {

src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
.monaco-editor .accessibilityHelpWidget {
7-
padding: 10px;
8-
vertical-align: middle;
9-
overflow: auto;
6+
.accessible-view {
7+
position: relative;
108
background-color: var(--vscode-editorWidget-background);
119
color: var(--vscode-editorWidget-foreground);
1210
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
13-
border: 2px solid var(--vscode-contrastBorder);
11+
border: 2px solid var(--vscode-contrastActiveBorder);
1412
}

0 commit comments

Comments
 (0)