Bug 1695698: update hamburger menu tooltip text r=fluent-reviewers,mconley,flod

Differential Revision: https://phabricator.services.mozilla.com/D106808
This commit is contained in:
Emma Malysz
2021-03-01 18:51:00 +00:00
parent 7134330ea7
commit ce870c395d
4 changed files with 15 additions and 3 deletions

View File

@@ -213,8 +213,16 @@ const PanelUI = {
}
this._ensureEventListenersAdded();
if (this.panel.state == "open") {
document.l10n.setAttributes(
this.menuButton,
"appmenu-menu-button-closed"
);
this.hide();
} else if (this.panel.state == "closed") {
document.l10n.setAttributes(
this.menuButton,
"appmenu-menu-button-opened"
);
this.show(aEvent);
}
},