Add a title to the templates help button

Bug: T299499
Change-Id: Ibb4aca479674668d6c14b8ace037433fa305dc35
This commit is contained in:
Andrew Kostka 2022-01-21 11:04:41 +01:00
parent 4015ad1bf5
commit 8da9661e11
2 changed files with 2 additions and 0 deletions

View file

@ -535,6 +535,7 @@ ve.ui.MWTransclusionDialog.prototype.initialize = function () {
if ( this.useNewSidebar || this.useInlineDescriptions ) {
var helpPopup = new ve.ui.MWFloatingHelpElement( {
label: mw.message( 'visualeditor-dialog-transclusion-help-title' ).text(),
title: mw.message( 'visualeditor-dialog-transclusion-help-title' ).text(),
$message: new OO.ui.FieldsetLayout( {
items: [
new OO.ui.LabelWidget( {

View file

@ -22,6 +22,7 @@ ve.ui.MWFloatingHelpElement = function VeUiMWFloatingHelpElement( config ) {
this.helpButton = new OO.ui.ButtonWidget( {
icon: 'help',
label: config.label,
title: config.title,
invisibleLabel: true,
flags: 'progressive',
rel: 'help',