File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,9 @@ class CodeViewer extends Component {
154
154
uncheckedIcon = {
155
155
< span className = "switch-text unchecked" > UAST</ span >
156
156
}
157
- onColor = "#ffba34"
158
- offColor = "#e1e1e1"
159
157
width = { 100 }
160
158
handleDiameter = { 20 }
161
- className = " code-toggler"
159
+ className = { ` code-toggler ${ showUast ? 'checked' : 'unchecked' } ` }
162
160
aria-label = "Toggle UAST view"
163
161
/>
164
162
</ Modal . Title >
Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
.switch-text.checked {
36
- color : @btn-gbpl-tertiary-color ;
36
+ color : @btn-gbpl-tertiary-color ;
37
37
padding-left : 28px ;
38
38
}
39
39
40
40
.switch-text.unchecked {
41
41
color : #979797 ;
42
42
margin-left : -29px ;
43
43
}
44
+
45
+ & .checked {
46
+ .react-switch-bg {
47
+ background : @tertiary !important ;
48
+ }
49
+ }
50
+
51
+ & .unchecked {
52
+ .react-switch-bg {
53
+ background : #e1e1e1 !important ;
54
+ }
55
+ }
44
56
}
You can’t perform that action at this time.
0 commit comments