mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-17 02:30:48 +01:00
[refactor] add menu open and close button text
This commit is contained in:
parent
ac68eecf3a
commit
614ada97a6
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"version": "5.71.0",
|
"version": "5.72.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nightTab",
|
"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.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
<div class="menu-close">
|
<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>
|
</div>
|
||||||
|
@ -479,6 +479,7 @@ var header = (function() {
|
|||||||
},
|
},
|
||||||
menu: function() {
|
menu: function() {
|
||||||
var button = helper.node("button|class:control-menu-open header-menu button button-line,tabindex:1");
|
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 baselineAlignmentCharacter = helper.node("span:-|class:baseline-alignment-icon-character,aria-hidden:true");
|
||||||
var buttonIcon = helper.node("span|class:icon-settings");
|
var buttonIcon = helper.node("span|class:icon-settings");
|
||||||
if (state.get.current().header.menu.style == "clear") {
|
if (state.get.current().header.menu.style == "clear") {
|
||||||
@ -486,6 +487,7 @@ var header = (function() {
|
|||||||
};
|
};
|
||||||
button.appendChild(baselineAlignmentCharacter);
|
button.appendChild(baselineAlignmentCharacter);
|
||||||
button.appendChild(buttonIcon);
|
button.appendChild(buttonIcon);
|
||||||
|
button.appendChild(buttonText);
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var version = (function() {
|
var version = (function() {
|
||||||
|
|
||||||
var current = "5.71.0";
|
var current = "5.72.0";
|
||||||
|
|
||||||
var name = "Jaded Raven";
|
var name = "Jaded Raven";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"short_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.",
|
"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,
|
"manifest_version": 2,
|
||||||
"chrome_url_overrides": {
|
"chrome_url_overrides": {
|
||||||
"newtab": "index.html"
|
"newtab": "index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user