Bug 1438002 - Add title tooltips to the inspector sidebar tabs. r=Honza draft
authorGabriel Luong <gabriel.luong@gmail.com>
Thu, 15 Feb 2018 23:15:44 -0500
changeset 755965 d940d267be946fae5b284a94096d56ca54a3ea8e
parent 755964 2d086c21b2a17715efed3b8d08350b26deacb150
push id99343
push userbmo:gl@mozilla.com
push dateFri, 16 Feb 2018 04:17:00 +0000
reviewersHonza
bugs1438002
milestone60.0a1
Bug 1438002 - Add title tooltips to the inspector sidebar tabs. r=Honza MozReview-Commit-ID: Do6R7iFPX0r
devtools/client/shared/components/tabs/Tabs.js
--- a/devtools/client/shared/components/tabs/Tabs.js
+++ b/devtools/client/shared/components/tabs/Tabs.js
@@ -298,16 +298,17 @@ define(function (require, exports, modul
               key: index,
               ref,
               role: "presentation",
             },
               dom.span({className: "devtools-tab-line"}),
               dom.a({
                 id: id ? id + "-tab" : "tab-" + index,
                 tabIndex: isTabSelected ? 0 : -1,
+                title,
                 "aria-controls": id ? id + "-panel" : "panel-" + index,
                 "aria-selected": isTabSelected,
                 role: "tab",
                 onClick: this.onClickTab.bind(this, index),
               },
                 title,
                 badge && !isTabSelected && showBadge() ?
                   dom.span({ className: "tab-badge" }, badge)