mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +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
|
$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' )
|
||||||
|
|
|
@ -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' ],
|
||||||
|
|
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue