Remove tabindex="-1" from "Add more information" button in template dialog

This makes it button keyboard-accessible, like the other buttons.

Bug: T179136
Change-Id: Ib2824176fe861e0ad8511f755521bee941119b29
This commit is contained in:
Bartosz Dziewoński 2021-01-29 21:05:47 +01:00
parent 7fd9a6e9b0
commit 185db3a157
2 changed files with 2 additions and 4 deletions

View file

@ -166,8 +166,7 @@ ve.ui.MWParameterPage = function VeUiMWParameterPage( parameter, name, config )
this.addButton = new OO.ui.ButtonWidget( {
framed: false,
icon: 'parameter',
label: ve.msg( 'visualeditor-dialog-transclusion-add-param' ),
tabIndex: -1
label: ve.msg( 'visualeditor-dialog-transclusion-add-param' )
} )
.connect( this, { click: 'onAddButtonFocus' } );

View file

@ -50,8 +50,7 @@ ve.ui.MWTemplatePage = function VeUiMWTemplatePage( template, name, config ) {
this.addButton = new OO.ui.ButtonWidget( {
framed: false,
icon: 'parameter',
label: ve.msg( 'visualeditor-dialog-transclusion-add-param' ),
tabIndex: -1
label: ve.msg( 'visualeditor-dialog-transclusion-add-param' )
} )
.connect( this, { click: 'onAddButtonFocus' } );