@@ -36,18 +36,19 @@ class SwitchControl extends ImmutableComponent {
36
36
>
37
37
{
38
38
this . props . leftl10nId && this . props . topl10nId
39
- ? < div className = 'switchControlText' > < div className = 'switchControlLeftText' > < div className = 'switchSpacer' > </ div > < span className = 'switchControlLeftText' data-l10n-id = { this . props . leftl10nId } /> </ div > </ div >
39
+ ? < div className = 'switchControlText' > < div className = 'switchControlLeftText' > < div className = 'switchSpacer' > </ div > < label className = 'switchControlLeftText' onClick = { this . onClick } data-l10n-id = { this . props . leftl10nId } /> </ div > </ div >
40
40
: ( this . props . leftl10nId
41
- ? < span className = 'switchControlLeftText' data-l10n-id = { this . props . leftl10nId } />
41
+ ? < label className = 'switchControlLeftText' onClick = { this . onClick } data-l10n-id = { this . props . leftl10nId } />
42
42
: null )
43
43
}
44
44
< div className = 'switchMiddle' >
45
45
{
46
46
this . props . topl10nId
47
- ? < span className = { cx ( {
47
+ ? < label className = { cx ( {
48
48
switchControlTopText : true ,
49
49
[ this . props . customTopTextClassName ] : ! ! this . props . customTopTextClassName
50
50
} ) }
51
+ onClick = { this . onClick }
51
52
data-l10n-id = { this . props . topl10nId } />
52
53
: null
53
54
}
@@ -67,34 +68,36 @@ class SwitchControl extends ImmutableComponent {
67
68
? < div className = 'switchControlText' >
68
69
< div className = 'switchControlRightText' >
69
70
< div className = 'switchSpacer' > </ div >
70
- < span className = { cx ( {
71
+ < label className = { cx ( {
71
72
switchControlRightText : true ,
72
73
[ this . props . customRightTextClassName ] : ! ! this . props . customRightTextClassName
73
74
} ) }
75
+ onClick = { this . onClick }
74
76
data-l10n-id = { this . props . rightl10nId }
75
77
data-l10n-args = { this . props . rightl10nArgs }
76
- > { this . props . rightText || '' } </ span >
78
+ > { this . props . rightText || '' } </ label >
77
79
</ div >
78
80
</ div >
79
81
: < div className = 'switchControlRight' >
80
82
{
81
83
( this . props . rightl10nId || this . props . rightText ) && ! this . props . onInfoClick
82
- ? < span className = { cx ( {
84
+ ? < label className = { cx ( {
83
85
switchControlRightText : true ,
84
86
[ this . props . customRightTextClassName ] : ! ! this . props . customRightTextClassName
85
87
} ) }
88
+ onClick = { this . onClick }
86
89
data-l10n-id = { this . props . rightl10nId }
87
90
data-l10n-args = { this . props . rightl10nArgs }
88
- > { this . props . rightText || '' } </ span >
91
+ > { this . props . rightText || '' } </ label >
89
92
: null
90
93
}
91
94
{
92
95
( this . props . rightl10nId || this . props . rightText ) && this . props . onInfoClick
93
96
? < div className = 'switchControlRightText' >
94
- < span data-l10n-id = { this . props . rightl10nId }
97
+ < label onClick = { this . onClick } data-l10n-id = { this . props . rightl10nId }
95
98
data-l10n-args = { this . props . rightl10nArgs } >
96
99
{ this . props . rightText }
97
- </ span >
100
+ </ label >
98
101
< span className = { cx ( {
99
102
fa : true ,
100
103
'fa-question-circle' : true ,
0 commit comments