Adding accessibility label to template and field name edit textbox

Change-Id: Ieeb29de8534300751956eb76477b38578478b4a2
This commit is contained in:
Akinwale Alagbe 2020-04-02 21:02:55 -07:00
parent cae5f665b8
commit 229a249cca
3 changed files with 5 additions and 0 deletions

View file

@ -54,6 +54,8 @@ ve.ui.MWParameterPlaceholderPage = function VeUiMWParameterPlaceholderPage( para
$content: this.addParameterSearch.$element
} );
this.addParameterFieldset.$element.attr( 'aria-label', ve.msg( 'visualeditor-dialog-transclusion-add-param' ) );
// Initialization
this.$element
.addClass( 've-ui-mwParameterPlaceholderPage' )

View file

@ -44,6 +44,8 @@ ve.ui.MWTemplatePlaceholderPage = function VeUiMWTemplatePlaceholderPage( placeh
choose: 'onAddTemplate'
} );
this.addTemplateInput.$input.attr( 'aria-label', ve.msg( 'visualeditor-dialog-transclusion-add-template' ) );
this.addTemplateButton = new OO.ui.ButtonWidget( {
label: ve.msg( 'visualeditor-dialog-transclusion-add-template' ),
flags: [ 'progressive' ],

View file

@ -38,6 +38,7 @@ ve.ui.MWParameterSearchWidget = function VeUiMWParameterSearchWidget( template,
// Initialization
this.$element.addClass( 've-ui-mwParameterSearchWidget' );
this.query.$input.attr( 'aria-label', ve.msg( 'visualeditor-parameter-input-placeholder' ) );
this.buildIndex();
};