[refactor] add menu open and close button text

This commit is contained in:
zombieFox 2020-07-27 13:53:38 +01:00
parent ac68eecf3a
commit 614ada97a6
6 changed files with 10 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.71.0",
"version": "5.72.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.71.0",
"version": "5.72.0",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js",
"scripts": {

View File

@ -1,3 +1,6 @@
<div class="menu-close">
<button class="menu-close-tab control-menu-close button button-link" tabindex="-1"><span class="icon-close"></span></button>
<button class="menu-close-tab control-menu-close button button-link" tabindex="-1">
<span class="button-text sr-only">Close settings menu</span>
<span class="icon-close"></span>
</button>
</div>

View File

@ -479,6 +479,7 @@ var header = (function() {
},
menu: function() {
var button = helper.node("button|class:control-menu-open header-menu button button-line,tabindex:1");
var buttonText = helper.node("span:Open settings menu|class:button-text sr-only");
var baselineAlignmentCharacter = helper.node("span:-|class:baseline-alignment-icon-character,aria-hidden:true");
var buttonIcon = helper.node("span|class:icon-settings");
if (state.get.current().header.menu.style == "clear") {
@ -486,6 +487,7 @@ var header = (function() {
};
button.appendChild(baselineAlignmentCharacter);
button.appendChild(buttonIcon);
button.appendChild(buttonText);
return button;
}
};

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "5.71.0";
var current = "5.72.0";
var name = "Jaded Raven";

View File

@ -2,7 +2,7 @@
"name": "nightTab",
"short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "5.71.0",
"version": "5.72.0",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"