@@ -59,6 +59,7 @@ export interface IFindController {
59
59
getGlobalBufferTerm ( ) : Promise < string > ;
60
60
}
61
61
62
+ const NLS_FIND_DIALOG_LABEL = nls . localize ( 'label.findDialog' , "Find / Replace" ) ;
62
63
const NLS_FIND_INPUT_LABEL = nls . localize ( 'label.find' , "Find" ) ;
63
64
const NLS_FIND_INPUT_PLACEHOLDER = nls . localize ( 'placeholder.find' , "Find" ) ;
64
65
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls . localize ( 'label.previousMatchButton' , "Previous Match" ) ;
@@ -1093,8 +1094,6 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
1093
1094
}
1094
1095
} ) ) ;
1095
1096
1096
- actionsContainer . appendChild ( this . _closeBtn . domNode ) ;
1097
-
1098
1097
// Replace input
1099
1098
this . _replaceInput = this . _register ( new ContextScopedReplaceInput ( null , undefined , {
1100
1099
label : NLS_REPLACE_INPUT_LABEL ,
@@ -1193,11 +1192,15 @@ export class FindWidget extends Widget implements IOverlayWidget, IVerticalSashL
1193
1192
this . _domNode = document . createElement ( 'div' ) ;
1194
1193
this . _domNode . className = 'editor-widget find-widget' ;
1195
1194
this . _domNode . setAttribute ( 'aria-hidden' , 'true' ) ;
1195
+ this . _domNode . ariaLabel = NLS_FIND_DIALOG_LABEL ;
1196
+ this . _domNode . role = 'dialog' ;
1197
+
1196
1198
// We need to set this explicitly, otherwise on IE11, the width inheritence of flex doesn't work.
1197
1199
this . _domNode . style . width = `${ FIND_WIDGET_INITIAL_WIDTH } px` ;
1198
1200
1199
1201
this . _domNode . appendChild ( this . _toggleReplaceBtn . domNode ) ;
1200
1202
this . _domNode . appendChild ( findPart ) ;
1203
+ this . _domNode . appendChild ( this . _closeBtn . domNode ) ;
1201
1204
this . _domNode . appendChild ( replacePart ) ;
1202
1205
1203
1206
this . _resizeSash = new Sash ( this . _domNode , this , { orientation : Orientation . VERTICAL , size : 2 } ) ;
0 commit comments