@@ -278,13 +278,14 @@ export default class ExplorerQueryComposer extends React.Component {
278
278
let deleteButton = null ;
279
279
if ( ! this . props . isTimeSeries || index !== 0 ) {
280
280
deleteButton = (
281
- < a
282
- href = 'javascript:;'
283
- role = 'button'
284
- className = { styles . del }
285
- onClick = { this . removeAdditionalQuery . bind ( this , 'aggregates' , index ) } >
286
- ×
287
- </ a >
281
+ < div className = { styles . delWrapper } >
282
+ < button
283
+ type = 'button'
284
+ className = { styles . del }
285
+ onClick = { this . removeAdditionalQuery . bind ( this , 'aggregates' , index ) } >
286
+ ×
287
+ </ button >
288
+ </ div >
288
289
) ;
289
290
}
290
291
@@ -340,13 +341,14 @@ export default class ExplorerQueryComposer extends React.Component {
340
341
let specialGroup = this . props . isTimeSeries && index === 0 ;
341
342
if ( ! specialGroup ) {
342
343
deleteButton = (
343
- < a
344
- href = 'javascript:;'
345
- role = 'button'
346
- className = { styles . del }
347
- onClick = { this . removeAdditionalQuery . bind ( this , 'groups' , index ) } >
348
- ×
349
- </ a >
344
+ < div className = { styles . delWrapper } >
345
+ < button
346
+ type = 'button'
347
+ className = { styles . del }
348
+ onClick = { this . removeAdditionalQuery . bind ( this , 'groups' , index ) } >
349
+ ×
350
+ </ button >
351
+ </ div >
350
352
) ;
351
353
}
352
354
@@ -519,14 +521,15 @@ export default class ExplorerQueryComposer extends React.Component {
519
521
520
522
{ constraintView }
521
523
522
- < a
523
- href = 'javascript:;'
524
- role = 'button'
525
- className = { styles . del }
526
- onClick = { this . removeAdditionalQuery . bind ( this , 'filters' , index ) } >
527
- ×
528
- </ a >
524
+ < div className = { styles . delWrapper } >
525
+ < button
526
+ type = 'button'
527
+ className = { styles . del }
528
+ onClick = { this . removeAdditionalQuery . bind ( this , 'filters' , index ) } >
529
+ ×
530
+ </ button >
529
531
</ div >
532
+ </ div >
530
533
) ;
531
534
}
532
535
@@ -563,13 +566,14 @@ export default class ExplorerQueryComposer extends React.Component {
563
566
color = 'blue'
564
567
width = '100%' />
565
568
566
- < a
567
- href = 'javascript:;'
568
- role = 'button'
569
- className = { styles . del }
570
- onClick = { this . removeAdditionalQuery . bind ( this , 'orders' , index ) } >
571
- ×
572
- </ a >
569
+ < div className = { styles . delWrapper } >
570
+ < button
571
+ type = 'button'
572
+ className = { styles . del }
573
+ onClick = { this . removeAdditionalQuery . bind ( this , 'orders' , index ) } >
574
+ ×
575
+ </ button >
576
+ </ div >
573
577
</ div >
574
578
</ div >
575
579
) ;
@@ -613,33 +617,38 @@ export default class ExplorerQueryComposer extends React.Component {
613
617
value = { this . state . newName }
614
618
onChange = { this . handleNameChange . bind ( this ) }
615
619
placeholder = { 'Give your query a name' } />
616
- < a
617
- href = 'javascript:;'
618
- role = 'button'
619
- className = { styles . headerButton }
620
- onClick = { this . handleSave . bind ( this ) } >
621
- { this . state . isSaved ? 'Rename' : 'Save' }
622
- </ a >
623
- < a
624
- href = 'javascript:;'
625
- role = 'button'
626
- className = { [ styles . headerButton , styles . secondaryColor ] . join ( ' ' ) }
627
- onClick = { this . toggleEditing . bind ( this ) } >
628
- Cancel
629
- </ a >
620
+ < div className = { styles . headerButtonCell } >
621
+ < button
622
+ type = 'button'
623
+ className = { styles . headerButton }
624
+ onClick = { this . handleSave . bind ( this ) } >
625
+ { this . state . isSaved ? 'Rename' : 'Save' }
626
+ </ button >
627
+ </ div >
628
+ < div className = { styles . headerButtonCell } >
629
+ < button
630
+ type = 'button'
631
+ className = { [ styles . headerButton , styles . secondaryColor ] . join ( ' ' ) }
632
+ onClick = { this . toggleEditing . bind ( this ) } >
633
+ Cancel
634
+ </ button >
635
+ </ div >
630
636
</ div >
631
637
) ;
632
638
} else {
633
639
headerView = (
634
640
< div className = { [ base . center , styles . headerView ] . join ( ' ' ) } >
635
641
< h3 className = { styles . headerLabel } > { this . state . name || 'Build a custom query' } </ h3 >
636
- { isNew ? null : < a
637
- href = 'javascript:;'
638
- role = 'button'
639
- className = { [ styles . headerButton , styles . secondaryColor ] . join ( ' ' ) }
640
- onClick = { this . toggleEditing . bind ( this ) } >
641
- { this . state . isSaved ? 'Rename' : 'Save' }
642
- </ a > }
642
+ { isNew ? null : (
643
+ < div className = { styles . headerButtonCell } >
644
+ < button
645
+ type = 'button'
646
+ className = { [ styles . headerButton , styles . secondaryColor ] . join ( ' ' ) }
647
+ onClick = { this . toggleEditing . bind ( this ) } >
648
+ { this . state . isSaved ? 'Rename' : 'Save' }
649
+ </ button >
650
+ </ div >
651
+ ) }
643
652
</ div >
644
653
) ;
645
654
}
0 commit comments