@@ -32,7 +32,7 @@ export interface IFindInputOptions extends IFindInputStyles {
3232}
3333
3434export interface IFindInputStyles extends IInputBoxStyles {
35- inputActiveOptionBorder ?: Color | null ;
35+ inputActiveOptionBorder ?: Color ;
3636}
3737
3838const NLS_DEFAULT_LABEL = nls . localize ( 'defaultLabel' , "input" ) ;
@@ -48,20 +48,20 @@ export class FindInput extends Widget {
4848 private label : string ;
4949 private fixFocusOnOptionClickEnabled = true ;
5050
51- private inputActiveOptionBorder ?: Color | null ;
52- private inputBackground ?: Color | null ;
53- private inputForeground ?: Color | null ;
54- private inputBorder ?: Color | null ;
55-
56- private inputValidationInfoBorder ?: Color | null ;
57- private inputValidationInfoBackground ?: Color | null ;
58- private inputValidationInfoForeground ?: Color | null ;
59- private inputValidationWarningBorder ?: Color | null ;
60- private inputValidationWarningBackground ?: Color | null ;
61- private inputValidationWarningForeground ?: Color | null ;
62- private inputValidationErrorBorder ?: Color | null ;
63- private inputValidationErrorBackground ?: Color | null ;
64- private inputValidationErrorForeground ?: Color | null ;
51+ private inputActiveOptionBorder ?: Color ;
52+ private inputBackground ?: Color ;
53+ private inputForeground ?: Color ;
54+ private inputBorder ?: Color ;
55+
56+ private inputValidationInfoBorder ?: Color ;
57+ private inputValidationInfoBackground ?: Color ;
58+ private inputValidationInfoForeground ?: Color ;
59+ private inputValidationWarningBorder ?: Color ;
60+ private inputValidationWarningBackground ?: Color ;
61+ private inputValidationWarningForeground ?: Color ;
62+ private inputValidationErrorBorder ?: Color ;
63+ private inputValidationErrorBackground ?: Color ;
64+ private inputValidationErrorForeground ?: Color ;
6565
6666 private regex : RegexCheckbox ;
6767 private wholeWords : WholeWordsCheckbox ;
@@ -202,7 +202,7 @@ export class FindInput extends Widget {
202202 protected applyStyles ( ) : void {
203203 if ( this . domNode ) {
204204 const checkBoxStyles : ICheckboxStyles = {
205- inputActiveOptionBorder : this . inputActiveOptionBorder || undefined ,
205+ inputActiveOptionBorder : this . inputActiveOptionBorder ,
206206 } ;
207207 this . regex . style ( checkBoxStyles ) ;
208208 this . wholeWords . style ( checkBoxStyles ) ;
@@ -313,7 +313,7 @@ export class FindInput extends Widget {
313313 this . regex = this . _register ( new RegexCheckbox ( {
314314 appendTitle : appendRegexLabel ,
315315 isChecked : false ,
316- inputActiveOptionBorder : this . inputActiveOptionBorder || undefined
316+ inputActiveOptionBorder : this . inputActiveOptionBorder
317317 } ) ) ;
318318 this . _register ( this . regex . onChange ( viaKeyboard => {
319319 this . _onDidOptionChange . fire ( viaKeyboard ) ;
@@ -330,7 +330,7 @@ export class FindInput extends Widget {
330330 this . wholeWords = this . _register ( new WholeWordsCheckbox ( {
331331 appendTitle : appendWholeWordsLabel ,
332332 isChecked : false ,
333- inputActiveOptionBorder : this . inputActiveOptionBorder || undefined
333+ inputActiveOptionBorder : this . inputActiveOptionBorder
334334 } ) ) ;
335335 this . _register ( this . wholeWords . onChange ( viaKeyboard => {
336336 this . _onDidOptionChange . fire ( viaKeyboard ) ;
@@ -344,7 +344,7 @@ export class FindInput extends Widget {
344344 this . caseSensitive = this . _register ( new CaseSensitiveCheckbox ( {
345345 appendTitle : appendCaseSensitiveLabel ,
346346 isChecked : false ,
347- inputActiveOptionBorder : this . inputActiveOptionBorder || undefined
347+ inputActiveOptionBorder : this . inputActiveOptionBorder
348348 } ) ) ;
349349 this . _register ( this . caseSensitive . onChange ( viaKeyboard => {
350350 this . _onDidOptionChange . fire ( viaKeyboard ) ;
0 commit comments