mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Adding accessibility label to template and field name edit textbox
Change-Id: Ieeb29de8534300751956eb76477b38578478b4a2
This commit is contained in:
parent
cae5f665b8
commit
229a249cca
|
@ -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' )
|
||||
|
|
|
@ -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' ],
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue