File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/vs/base/browser/ui/button Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 38
38
cursor : pointer;
39
39
}
40
40
41
+ .monaco-button-dropdown .disabled {
42
+ cursor : default;
43
+ }
44
+
41
45
.monaco-button-dropdown > .monaco-button : focus {
42
46
outline-offset : -1px !important ;
43
47
}
44
48
49
+ .monaco-button-dropdown .disabled .monaco-button-dropdown-separator {
50
+ opacity : 0.4 ;
51
+ }
52
+
45
53
.monaco-button-dropdown .monaco-button-dropdown-separator {
46
54
padding : 4px 0 ;
47
55
}
Original file line number Diff line number Diff line change @@ -299,6 +299,8 @@ export class ButtonWithDropdown extends Disposable implements IButton {
299
299
set enabled ( enabled : boolean ) {
300
300
this . button . enabled = enabled ;
301
301
this . dropdownButton . enabled = enabled ;
302
+
303
+ this . element . classList . toggle ( 'disabled' , ! enabled ) ;
302
304
}
303
305
304
306
get enabled ( ) : boolean {
You can’t perform that action at this time.
0 commit comments