aboutsummaryrefslogtreecommitdiffstats
path: root/includes/diff
diff options
context:
space:
mode:
authorMusikAnimal <musikanimal@gmail.com>2023-10-17 12:31:46 -0400
committerMusikAnimal <musikanimal@gmail.com>2023-10-17 12:31:49 -0400
commitd3903b9c2a5509aaa921959130fed5417dc90e2b (patch)
tree68925297a764cec13dcda2499c1e7d746a02d7bd /includes/diff
parent6727d3cedf0949aecdb0d458040d34ffb5818fd9 (diff)
downloadmediawikicore-d3903b9c2a5509aaa921959130fed5417dc90e2b.tar.gz
mediawikicore-d3903b9c2a5509aaa921959130fed5417dc90e2b.zip
TextSlotDiffRenderer: show tooltip instead of help icon on inline switch
Also add to the switch itself, not just the label Bug: T346429 Change-Id: Ia7319a63878e029765c08a44f890fe96205c35da
Diffstat (limited to 'includes/diff')
-rw-r--r--includes/diff/TextSlotDiffRenderer.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/diff/TextSlotDiffRenderer.php b/includes/diff/TextSlotDiffRenderer.php
index bd4ea8a6846c..5e53e61f624d 100644
--- a/includes/diff/TextSlotDiffRenderer.php
+++ b/includes/diff/TextSlotDiffRenderer.php
@@ -255,13 +255,14 @@ class TextSlotDiffRenderer extends SlotDiffRenderer {
new ToggleSwitchWidget( [
'id' => 'mw-diffPage-inline-toggle-switch',
'href' => $newTitle->getLocalURL( $values ),
- 'value' => $isInlineDiffType
+ 'value' => $isInlineDiffType,
+ 'title' => $context->msg( 'diff-inline-switch-desc' )->plain()
] ),
[
'id' => 'mw-diffPage-inline-toggle-switch-layout',
'label' => $context->msg( 'diff-inline-format-label' )->plain(),
'infusable' => true,
- 'help' => $context->msg( 'diff-inline-switch-desc' )->plain()
+ 'title' => $context->msg( 'diff-inline-switch-desc' )->plain()
]
),
);