Bug 1226877 - make toolbox panels inaccessible with keyboard when they are hidden or collapsed. r=bgrins draft
authorYura Zenevich <yzenevich@mozilla.com>
Fri, 22 Jul 2016 12:38:09 -0400
changeset 391380 c95082b1a7027fa5fc9f013bd1e29383f34ba3f2
parent 391379 b917439144a78659ff9090a60a5cae814a13afe1
child 526205 d88467e235957299e00a0475e946c741b7065aea
push id23890
push useryura.zenevich@gmail.com
push dateFri, 22 Jul 2016 16:38:33 +0000
reviewersbgrins
bugs1226877
milestone50.0a1
Bug 1226877 - make toolbox panels inaccessible with keyboard when they are hidden or collapsed. r=bgrins MozReview-Commit-ID: GP8ATe45eSC
devtools/client/themes/toolbox.css
--- a/devtools/client/themes/toolbox.css
+++ b/devtools/client/themes/toolbox.css
@@ -377,9 +377,28 @@
 .toolbox-panel {
   display: -moz-box;
   -moz-box-flex: 1;
   visibility: collapse;
 }
 
 .toolbox-panel[selected] {
   visibility: visible;
-}
\ No newline at end of file
+}
+
+/**
+ * When panels are collapsed or hidden, making sure that they are also
+ * inaccessible by keyboard. This is not the case by default because the are
+ * predominantly hidden using visibility: collapse; style or collapsed
+ * attribute.
+ */
+.toolbox-panel *,
+#toolbox-panel-webconsole[collapsed] * {
+  -moz-user-focus: ignore;
+}
+
+/**
+ * Enrure that selected toolbox panel's contents are keyboard accessible as they
+ * are explicitly made not to be when hidden (default).
+ */
+.toolbox-panel[selected] * {
+  -moz-user-focus: normal;
+}