mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 17:18:41 +00:00
MWLanguageVariantInspector: Use 'title' config option instead of 'iconTitle'
This way the tooltip is shown on the entire button, rather than only on the icon. One should only use 'iconTitle' to display a different tooltip on the icon than on the rest of the widget. I think this was caused by bad documentation in OOUI, which I'm fixing in I967d9b78014b3754720e80da9c4785124fffc2ba. Change-Id: I8cc99bcfca56b80a8c8aff609ba48eb3f9c5ed7f
This commit is contained in:
parent
c04e934361
commit
4ee35de02a
|
@ -623,7 +623,7 @@ ve.ui.MWLanguageVariantTwoWayInspector.prototype.createItem = function ( lang, c
|
|||
) );
|
||||
clearButton = new OO.ui.ButtonInputWidget( {
|
||||
icon: 'clear',
|
||||
iconTitle: OO.ui.deferMsg(
|
||||
title: OO.ui.deferMsg(
|
||||
'visualeditor-mwlanguagevariantinspector-twoway-clear-button'
|
||||
),
|
||||
framed: false
|
||||
|
@ -777,7 +777,7 @@ ve.ui.MWLanguageVariantOneWayInspector.prototype.createItem = function ( from, l
|
|||
) );
|
||||
clearButton = new OO.ui.ButtonInputWidget( {
|
||||
icon: 'clear',
|
||||
iconTitle: OO.ui.deferMsg(
|
||||
title: OO.ui.deferMsg(
|
||||
'visualeditor-mwlanguagevariantinspector-oneway-clear-button'
|
||||
),
|
||||
framed: false
|
||||
|
|
Loading…
Reference in a new issue