File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
codeEditor/browser/accessibility Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class AccessibleView extends Disposable {
96
96
if ( ! domNode ) {
97
97
return ;
98
98
}
99
- container . appendChild ( domNode ) ;
99
+ container . appendChild ( this . _editorContainer ) ;
100
100
this . _layout ( ) ;
101
101
this . _register ( this . _editorWidget . onKeyDown ( ( e ) => {
102
102
if ( e . keyCode === KeyCode . Escape ) {
@@ -125,9 +125,9 @@ class AccessibleView extends Disposable {
125
125
const height = Math . min ( .4 * windowHeight , this . _editorWidget . getContentHeight ( ) ) ;
126
126
this . _editorWidget . layout ( { width, height } ) ;
127
127
const top = Math . round ( ( windowHeight - height ) / 2 ) ;
128
- domNode . style . top = `${ top } px` ;
128
+ this . _editorContainer . style . top = `${ top } px` ;
129
129
const left = Math . round ( ( windowWidth - width ) / 2 ) ;
130
- domNode . style . left = `${ left } px` ;
130
+ this . _editorContainer . style . left = `${ left } px` ;
131
131
}
132
132
133
133
private async _getTextModel ( resource : URI ) : Promise < ITextModel | null > {
Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- .monaco-editor .accessibilityHelpWidget {
7
- padding : 10px ;
8
- vertical-align : middle;
9
- overflow : auto;
6
+ .accessible-view {
7
+ position : relative;
10
8
background-color : var (--vscode-editorWidget-background );
11
9
color : var (--vscode-editorWidget-foreground );
12
10
box-shadow : 0 2px 8px var (--vscode-widget-shadow );
13
- border : 2px solid var (--vscode-contrastBorder );
11
+ border : 2px solid var (--vscode-contrastActiveBorder );
14
12
}
You can’t perform that action at this time.
0 commit comments