Adding aria-label to the widgets in page settings that fail accessibility

Bug: T247048
Change-Id: I08469c9a38d905b8953b471f11839a5b99f4e7c8
This commit is contained in:
Akinwale Alagbe 2020-03-05 17:38:57 -08:00 committed by Bartosz Dziewoński
parent 2c1383b79e
commit a65c905287

View file

@ -81,6 +81,8 @@ ve.ui.MWSettingsPage = function VeUiMWSettingsPage( name, config ) {
$overlay: config.$overlay, $overlay: config.$overlay,
api: ve.init.target.getContentApi() api: ve.init.target.getContentApi()
} ); } );
this.redirectTargetInput.$input.attr( 'aria-label', ve.msg( 'visualeditor-dialog-meta-settings-redirect-placeholder' ) );
this.redirectTargetField = new OO.ui.FieldLayout( this.redirectTargetField = new OO.ui.FieldLayout(
this.redirectTargetInput, this.redirectTargetInput,
{ align: 'top' } { align: 'top' }