Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit b820ce8

Browse files
authored
Merge pull request #372 from mozilla/settings-label
Adding in aria-label for settings button. Fixes #370
2 parents 08bd789 + 9ba608e commit b820ce8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/_locales/en_US/messages.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
"message": "Powered by Cloudflare®."
5757
},
5858
"popupToggleButton": {
59-
"message": "Firefox Private Network "
59+
"message": "Firefox Private Network"
60+
},
61+
"popupSettingsButtonLabel": {
62+
"message": "Settings"
6063
},
6164

6265
"toastProxyOff": {

src/view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class View {
7070

7171
static showSettings(shouldShow) {
7272
let settingsElement = document.getElementById("settingsButton");
73+
settingsElement.setAttribute("aria-label", currentView.getTranslation("popupSettingsButtonLabel"));
7374
settingsElement.toggleAttribute("hidden", !shouldShow);
7475
}
7576

0 commit comments

Comments
 (0)