Skip to content

Commit 614ada9

Browse files
committed
[refactor] add menu open and close button text
1 parent ac68eec commit 614ada9

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "5.71.0",
3+
"version": "5.72.0",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/html/menu/close.html‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
<divclass="menu-close">
2-
<buttonclass="menu-close-tab control-menu-close button button-link" tabindex="-1"><spanclass="icon-close"></span></button>
2+
<buttonclass="menu-close-tab control-menu-close button button-link" tabindex="-1">
3+
<spanclass="button-text sr-only">Close settings menu</span>
4+
<spanclass="icon-close"></span>
5+
</button>
36
</div>

‎src/js/header.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,13 +479,15 @@ var header = (function(){
479479
},
480480
menu: function(){
481481
varbutton=helper.node("button|class:control-menu-open header-menu button button-line,tabindex:1");
482+
varbuttonText=helper.node("span:Open settings menu|class:button-text sr-only");
482483
varbaselineAlignmentCharacter=helper.node("span:-|class:baseline-alignment-icon-character,aria-hidden:true");
483484
varbuttonIcon=helper.node("span|class:icon-settings");
484485
if(state.get.current().header.menu.style=="clear"){
485486
helper.addClass(button,"button-link");
486487
};
487488
button.appendChild(baselineAlignmentCharacter);
488489
button.appendChild(buttonIcon);
490+
button.appendChild(buttonText);
489491
returnbutton;
490492
}
491493
};

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="5.71.0";
3+
varcurrent="5.72.0";
44

55
varname="Jaded Raven";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "5.71.0",
5+
"version": "5.72.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)