File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,22 @@ interface OptionsPanelProps extends ClipperStateProp {
22
22
class OptionsPanelClass extends ComponentBase < { } , OptionsPanelProps > {
23
23
render ( ) {
24
24
let clipButtonEnabled = ClipperStateHelperFunctions . clipButtonEnabled ( this . props . clipperState ) ;
25
+ let clipButtonContainerClassName = clipButtonEnabled ? "wideButtonContainer" : "wideButtonContainer disabled" ;
25
26
26
27
return (
27
28
< div className = "optionsPanel" >
28
29
< ModeButtonSelector clipperState = { this . props . clipperState } />
29
30
< SectionPicker onPopupToggle = { this . props . onPopupToggle . bind ( this ) } clipperState = { this . props . clipperState } />
30
31
31
- < div id = { Constants . Ids . clipButtonContainer } className = "wideButtonContainer" >
32
+ < div id = { Constants . Ids . clipButtonContainer } className = { clipButtonContainerClassName } >
32
33
{ clipButtonEnabled
33
34
? < a id = { Constants . Ids . clipButton } className = "wideActionButton" { ...this . enableInvoke ( this . props . onStartClip , 1 ) } >
34
35
< span className = "wideButtonFont"
35
36
style = { Localization . getFontFamilyAsStyle ( Localization . FontFamily . Semibold ) } >
36
37
{ Localization . getLocalizedString ( "WebClipper.Action.Clip" ) }
37
38
</ span >
38
39
</ a >
39
- : < a id = { Constants . Ids . clipButton } className = "wideActionButton disabled " >
40
+ : < a id = { Constants . Ids . clipButton } className = "wideActionButton" >
40
41
< span className = "wideButtonFont"
41
42
style = { Localization . getFontFamilyAsStyle ( Localization . FontFamily . Semibold ) } >
42
43
{ Localization . getLocalizedString ( "WebClipper.Action.Clip" ) }
Original file line number Diff line number Diff line change 65
65
user-select : text ;
66
66
}
67
67
68
- .disabled {
69
- cursor : default ;
70
- background : gray ;
71
- border-radius : 4px ;
72
- }
73
-
74
68
.failureMessageFont {
75
69
font-weight : normal ;
76
70
font-size : 18px ;
237
231
background : @WideButtonHoverColor ;
238
232
border-color : @WideButtonHoverColor ;
239
233
}
234
+
235
+ & .disabled {
236
+ cursor : default ;
237
+ background : gray ;
238
+ border-color : gray ;
239
+ }
240
240
}
241
241
242
242
.wideButtonFont {
You can’t perform that action at this time.
0 commit comments