@@ -278,13 +278,14 @@ export default class ExplorerQueryComposer extends React.Component {
278278 let deleteButton = null ;
279279 if ( ! this . props . isTimeSeries || index !== 0 ) {
280280 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 >
288289 ) ;
289290 }
290291
@@ -340,13 +341,14 @@ export default class ExplorerQueryComposer extends React.Component {
340341 let specialGroup = this . props . isTimeSeries && index === 0 ;
341342 if ( ! specialGroup ) {
342343 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 >
350352 ) ;
351353 }
352354
@@ -519,14 +521,15 @@ export default class ExplorerQueryComposer extends React.Component {
519521
520522 { constraintView }
521523
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 >
529531 </ div >
532+ </ div >
530533 ) ;
531534 }
532535
@@ -563,13 +566,14 @@ export default class ExplorerQueryComposer extends React.Component {
563566 color = 'blue'
564567 width = '100%' />
565568
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 >
573577 </ div >
574578 </ div >
575579 ) ;
@@ -613,33 +617,38 @@ export default class ExplorerQueryComposer extends React.Component {
613617 value = { this . state . newName }
614618 onChange = { this . handleNameChange . bind ( this ) }
615619 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 >
630636 </ div >
631637 ) ;
632638 } else {
633639 headerView = (
634640 < div className = { [ base . center , styles . headerView ] . join ( ' ' ) } >
635641 < 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+ ) }
643652 </ div >
644653 ) ;
645654 }
0 commit comments