File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
assets/src/dashboard/parts/connect Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -185,22 +185,16 @@ const ConnectLayout = () => {
185
185
/>
186
186
187
187
188
- < div
188
+ < button
189
189
onClick = { ( ) => setShowBenefits ( ! showBenefits ) }
190
- className = "inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-4 text-sm text-gray-500 cursor-pointer transition-all hover:bg-blue-100"
190
+ className = "inline-flex items-center bg-light-blue px-4 py-1.5 rounded-full mb-4 text-sm text-gray-500 cursor-pointer transition-all hover:bg-blue-100 border-none "
191
191
role = "button"
192
- tabIndex = "0"
193
- onKeyPress = { ( e ) => {
194
- if ( 'Enter' === e . key || ' ' === e . key ) {
195
- setShowBenefits ( ! showBenefits ) ;
196
- }
197
- } }
198
192
>
199
193
< span > { optimoleDashboardApp . strings . account_needed_benefits_toggle } </ span >
200
194
< span
201
195
className = { `dashicons dashicons-arrow-${ showBenefits ? 'up' : 'down' } ml-1` }
202
196
/>
203
- </ div >
197
+ </ button >
204
198
205
199
{ showBenefits && (
206
200
< div className = "mb-4" >
You can’t perform that action at this time.
0 commit comments