Merge "Fix: user navigation label when AMC is disabled"

This commit is contained in:
jenkins-bot 2020-01-13 22:14:16 +00:00 committed by Gerrit Code Review
commit 9f41c44da7
4 changed files with 4 additions and 1 deletions

View file

@ -45,6 +45,7 @@
"mobile-frontend-user-page-member-since": "{{GENDER:$2|Joined}} $1",
"mobile-frontend-user-page-talk": "Talk",
"minerva-user-menu-button": "User menu",
"minerva-user-navigation": "User navigation",
"minerva-page-actions-overflow": "More",
"minerva-page-actions-info": "Page information",
"minerva-page-actions-permalink": "Permanent link",

View file

@ -56,6 +56,7 @@
"mobile-frontend-user-page-member-since": "Message below the heading. $1 is the user registration date. $2 is the gender associated with the user account.",
"mobile-frontend-user-page-talk": "Text of the link to the user's talk page\n{{Identical|Talk}}",
"minerva-user-menu-button": "Text describing the user menu",
"minerva-user-navigation": "Text describing the navigation menus available in the top header.",
"minerva-page-actions-overflow": "In the secondary page menu, short text describing the button that triggers the drop-down menu\n{{Identical|More}}",
"minerva-page-actions-info": "In the secondary page menu, the page information button label",
"minerva-page-actions-permalink": "In the secondary page menu, the permanent link button label\n\nSee also:\n* {{msg-mw|permalink}}",

View file

@ -245,6 +245,7 @@ class MinervaTemplate extends BaseTemplate {
'menuButton' => $data['mainMenu']['buttonHTML'],
'siteheading' => $data['footer-site-heading-html'],
'mainPageURL' => Title::newMainPage()->getLocalURL(),
'userNavigationLabel' => wfMessage( 'minerva-user-navigation' ),
// A button when clicked will submit the form
// This is used so that on tablet devices with JS disabled the search button
// passes the value of input to the search

View file

@ -22,7 +22,7 @@
autocomplete="off" placeholder="{{placeholder}}" aria-label="{{placeholder}}"
value="{{search}}">
</div>
<nav class="minerva-user-navigation" aria-labelledby="minerva-user-menu-toggle"> {{! See ToggleList's toggleID. }}
<nav class="minerva-user-navigation" aria-label="{{userNavigationLabel}}">
<div>{{{searchButton}}}</div>
{{^isAnon}}
<div class="minerva-user-notifications" id="pt-notifications-alert">