Add tooltip to appearance menu icon

Bug: T369849
Change-Id: If3a73746dce41f3659f61c68941ed3ed6ebb6fd1
This commit is contained in:
Jon Robson 2024-08-26 16:32:55 -07:00 committed by Jdlrobson
parent 9390bb9046
commit 3c7d7c673e
3 changed files with 8 additions and 3 deletions

View file

@ -35,6 +35,7 @@
"vector-jumptocontent": "Jump to content",
"vector-more-actions": "More",
"vector-appearance-label": "Appearance",
"vector-appearance-tooltip": "Change the appearance of the page's font size, width, and color",
"vector-feature-limited-width-name": "Width",
"vector-feature-limited-width-0-label": "Wide",
"vector-feature-limited-width-1-label": "Standard",

View file

@ -51,7 +51,8 @@
"vector-jumptosearch": "Accessibility link for jumping to the site search. Visually hidden by default.\n\nSee also\n* {{msg-mw|Search}}",
"vector-jumptocontent": "Accessibility link for jumping to the content and skipping the navigation. Visually hidden by default.",
"vector-more-actions": "Label in the Vector skin's menu for the less-important or rarer actions which are not shown as tabs (like moving the page, or for sysops deleting or protecting the page), as well as (for users with a narrow viewing window in their browser) the less-important tab actions which the user's browser is unable to fit in. {{Identical|More}}",
"vector-appearance-label": "Heading for client preferences",
"vector-appearance-label": "Heading for appearance menu.",
"vector-appearance-tooltip": "Tooltip for appearance menu.",
"vector-feature-limited-width-name": "Heading label for limited width. The title of a list that includes the following items:\n* {{msg-mw|vector-feature-limited-width-1-label}}\n* {{msg-mw|vector-feature-limited-width-0-label}}",
"vector-feature-limited-width-0-label": "Label for option to disable limited width. An item in a list that has the title {{msg-mw|Vector-feature-limited-width-name}} and that includes the following items:\n* {{msg-mw|vector-feature-limited-width-1-label}}\n* {{msg-mw|vector-feature-limited-width-0-label}}",
"vector-feature-limited-width-1-label": "Label for option to enable limited width. An item in a list that has the title {{msg-mw|Vector-feature-limited-width-name}} and that includes the following items:\n* {{msg-mw|vector-feature-limited-width-1-label}}\n* {{msg-mw|vector-feature-limited-width-0-label}}",

View file

@ -3,6 +3,7 @@
namespace MediaWiki\Skins\Vector;
use ExtensionRegistry;
use MediaWiki\Html\Html;
use MediaWiki\Languages\LanguageConverterFactory;
use MediaWiki\MediaWikiServices;
use MediaWiki\Skins\Vector\Components\VectorComponentAppearance;
@ -479,8 +480,10 @@ class SkinVector22 extends SkinMustache {
'vector-appearance-dropdown',
$this->msg( 'vector-appearance-label' )->text(),
'',
// @todo: Use new theme icon (T351142)
'appearance'
'appearance',
Html::expandAttributes( [
'title' => $this->msg( 'vector-appearance-tooltip' ),
] )
) : null,
'data-vector-sticky-header' => $featureManager->isFeatureEnabled(
Constants::FEATURE_STICKY_HEADER