From 5c350eebcda338152572aea64400a07db5ce2ff4 Mon Sep 17 00:00:00 2001 From: monikamaheshwari Date: Sat, 27 Apr 2019 09:35:59 -0400 Subject: Bug 1429442 - Buttons in "type control" popup in reader mode should have tooltips r=Gijs,MarcoZ --- toolkit/components/reader/AboutReader.jsm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'toolkit/components/reader/AboutReader.jsm') diff --git a/toolkit/components/reader/AboutReader.jsm b/toolkit/components/reader/AboutReader.jsm index 5defa623e..9d9362a0c 100644 --- a/toolkit/components/reader/AboutReader.jsm +++ b/toolkit/components/reader/AboutReader.jsm @@ -120,6 +120,25 @@ var AboutReader = function(win, articlePromise) { } this._loadArticle(); + + let dropdown = this._toolbarElement; + + let elemL10nMap = { + ".minus-button": "minus", + ".plus-button": "plus", + ".content-width-minus-button": "contentwidthminus", + ".content-width-plus-button": "contentwidthplus", + ".line-height-minus-button": "lineheightminus", + ".line-height-plus-button": "lineheightplus", + ".light-button": "colorschemelight", + ".dark-button": "colorschemedark", + ".sepia-button": "colorschemesepia", + }; + + for (let [selector, stringID] of Object.entries(elemL10nMap)) { + dropdown.querySelector(selector).setAttribute("title", + gStrings.GetStringFromName("aboutReader.toolbar." + stringID)); + } }; AboutReader.prototype = { -- cgit v1.2.3