[bug] fix saved custom theme controls tab index when not in edit mode

This commit is contained in:
zombieFox 2020-04-22 18:43:25 +01:00
parent 2db6d22e05
commit eafd4c28bd
6 changed files with 18 additions and 7 deletions

2
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.21.0",
"version": "5.21.1",
"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

@ -18,6 +18,7 @@ var control = (function() {
type: "button",
func: function() {
menu.open();
theme.render.custom.tabIndex();
},
}, {
element: ".control-add-link",
@ -183,60 +184,70 @@ var control = (function() {
type: "button",
func: function() {
menu.nav("layout");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-header",
type: "button",
func: function() {
menu.nav("header");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-groups",
type: "button",
func: function() {
menu.nav("groups");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-bookmarks",
type: "button",
func: function() {
menu.nav("bookmarks");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-theme",
type: "button",
func: function() {
menu.nav("theme");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-background",
type: "button",
func: function() {
menu.nav("background");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-data",
type: "button",
func: function() {
menu.nav("data");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-coffee",
type: "button",
func: function() {
menu.nav("coffee");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-nighttab",
type: "button",
func: function() {
menu.nav("nighttab");
theme.render.custom.tabIndex();
}
}, {
element: ".control-menu-close",
type: "button",
func: function() {
menu.close();
theme.render.custom.tabIndex();
}
}]
},

View File

@ -2275,9 +2275,9 @@ var theme = (function() {
var themeCustomButton = helper.node("button|class:theme-custom-button button button-block button-ring,tabindex:-1");
var themeCustomPreview = helper.node("span|class:theme-custom-preview");
var themeCustomControl = helper.node("div|class:theme-custom-control");
var themeCustomEdit = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-2");
var themeCustomEdit = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-1");
var themeCustomEditIcon = helper.node("spa|class:button-icon icon-edit");
var themeCustomRemove = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-2");
var themeCustomRemove = helper.node("button|class:theme-custom-control-item theme-custom-control-item-remove button button-small,tabindex:-1");
var themeCustomRemoveIcon = helper.node("spa|class:button-icon icon-close");
var shadeSteps = 4;
var rgb = arrayItem.color.rgb;
@ -2578,7 +2578,7 @@ var theme = (function() {
});
} else {
helper.eA(".theme-custom-control-item").forEach(function(arrayItem, index) {
arrayItem.tabIndex = -2;
arrayItem.tabIndex = -1;
});
};
},

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "5.21.0";
var current = "5.21.1";
var name = "Zonked Tarsier";

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.21.0",
"version": "5.21.1",
"manifest_version": 2,
"chrome_url_overrides": {
"newtab": "index.html"