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 $content: this.addParameterSearch.$element
} ); } );
this.addParameterFieldset.$element.attr( 'aria-label', ve.msg( 'visualeditor-dialog-transclusion-add-param' ) );
// Initialization // Initialization
this.$element this.$element
.addClass( 've-ui-mwParameterPlaceholderPage' ) .addClass( 've-ui-mwParameterPlaceholderPage' )

View file

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

View file

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