File tree 2 files changed +5
-9
lines changed
src/vs/base/browser/ui/inputbox
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 14
14
font-size : inherit;
15
15
}
16
16
17
- .monaco-inputbox .idle {
18
- border : 1px solid transparent;
19
- }
20
-
21
17
.monaco-inputbox > .ibwrapper > .input ,
22
18
.monaco-inputbox > .ibwrapper > .mirror {
23
19
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ export class InputBox extends Widget {
377
377
this . element . classList . add ( this . classForType ( message . type ) ) ;
378
378
379
379
const styles = this . stylesForType ( this . message . type ) ;
380
- this . element . style . border = styles . border ? `1px solid ${ styles . border } ` : ' ';
380
+ this . element . style . borderColor = styles . border || 'transparent ';
381
381
382
382
if ( this . message . content && ( this . hasFocus ( ) || force ) ) {
383
383
this . _showMessage ( ) ;
@@ -551,10 +551,10 @@ export class InputBox extends Widget {
551
551
this . input . style . backgroundColor = 'inherit' ;
552
552
this . input . style . color = foreground ;
553
553
554
- if ( border ) {
555
- this . element . style . border = '1px solid ' + border ;
556
- }
557
-
554
+ // there's always a border, even if the color is not set.
555
+ this . element . style . borderColor = border || 'transparent' ;
556
+ this . element . style . borderWidth = '1px' ;
557
+ this . element . style . borderStyle = 'solid' ;
558
558
}
559
559
560
560
public layout ( ) : void {
You can’t perform that action at this time.
0 commit comments