diff --git a/devtools/client/aboutdebugging/aboutdebugging.css b/devtools/client/aboutdebugging/aboutdebugging.css index 75ddf0a09b97..5fd30d584256 100644 --- a/devtools/client/aboutdebugging/aboutdebugging.css +++ b/devtools/client/aboutdebugging/aboutdebugging.css @@ -20,7 +20,13 @@ button { /* Category panels */ +#categories { + display: flex; + flex-direction: column; +} + .category { + border: 0 solid transparent; display: flex; flex-direction: row; align-items: center; diff --git a/devtools/client/aboutdebugging/components/panel-menu-entry.js b/devtools/client/aboutdebugging/components/panel-menu-entry.js index 1af02d4356aa..809a98eeb8fe 100644 --- a/devtools/client/aboutdebugging/components/panel-menu-entry.js +++ b/devtools/client/aboutdebugging/components/panel-menu-entry.js @@ -22,24 +22,17 @@ module.exports = createClass({ this.props.selectPanel(this.props.id); }, - onKeyDown(event) { - if ([" ", "Enter"].includes(event.key)) { - this.props.selectPanel(this.props.id); - } - }, - render() { let { id, name, icon, selected } = this.props; // Here .category, .category-icon, .category-name classnames are used to // apply common styles defined. let className = "category" + (selected ? " selected" : ""); - return dom.div({ + return dom.button({ "aria-selected": selected, "aria-controls": id + "-panel", className, onClick: this.onClick, - onKeyDown: this.onKeyDown, tabIndex: "0", role: "tab" }, dom.img({ className: "category-icon", src: icon, role: "presentation" }), diff --git a/devtools/client/themes/images/debugging-addons.svg b/devtools/client/themes/images/debugging-addons.svg index d97eedb663a4..329d18e67112 100644 --- a/devtools/client/themes/images/debugging-addons.svg +++ b/devtools/client/themes/images/debugging-addons.svg @@ -2,5 +2,5 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - + diff --git a/devtools/client/themes/images/debugging-tabs.svg b/devtools/client/themes/images/debugging-tabs.svg index 6e60a038b6b5..16a5128e0679 100644 --- a/devtools/client/themes/images/debugging-tabs.svg +++ b/devtools/client/themes/images/debugging-tabs.svg @@ -2,5 +2,5 @@ - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - + diff --git a/devtools/client/themes/images/debugging-workers.svg b/devtools/client/themes/images/debugging-workers.svg index baf7be577629..66a65843c6e0 100644 --- a/devtools/client/themes/images/debugging-workers.svg +++ b/devtools/client/themes/images/debugging-workers.svg @@ -1,7 +1,7 @@ - +