Bug 1517035 - Bug 1516813 follow-up: Don't accept mouse clicks on the #contactlistbox itself. r=jorgk DONTBUILD
authorRichard Marti <richard.marti@gmail.com>
Mon, 31 Dec 2018 20:01:03 +0100
changeset 33240 c65545fc8877
parent 33239 a58e59146246
child 33241 feba8def888f
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorgk
bugs1517035, 1516813
Bug 1517035 - Bug 1516813 follow-up: Don't accept mouse clicks on the #contactlistbox itself. r=jorgk DONTBUILD
mail/components/im/themes/chat.css
--- a/mail/components/im/themes/chat.css
+++ b/mail/components/im/themes/chat.css
@@ -86,16 +86,17 @@
 }
 
 #contactlistbox {
   color: inherit;
   margin: 0;
   /* make it possible to let the children overwrite the end border.
      margin-inline-start because of the inverted direction */
   margin-inline-start: -1px;
+  pointer-events: none;
 }
 
 /* move the scrollbar to the left */
 #contactlistbox:-moz-locale-dir(ltr),
 #contactlistbox:-moz-locale-dir(rtl) > :-moz-any(imconv, imcontact, imgroup) {
   direction: rtl;
 }
 
@@ -142,16 +143,20 @@ imcontact > .box-line {
   /* equalize the space, the .closeConversationButton uses */
   margin-inline-end: 22px;
 }
 
 .box-line[selected=true] {
   background-color: var(--tabline-color);
 }
 
+:-moz-any(imconv, imcontact, imgroup) {
+  pointer-events: auto;
+}
+
 :-moz-any(imconv, imcontact, imgroup):not([selected=true]):hover {
   background-color: rgba(0,0,0,.1);
 }
 
 :root[lwt-tree] imgroup,
 :root[lwt-tree] imconv:not([selected]),
 :root[lwt-tree] imcontact:not([selected]) {
   color: var(--sidebar-text-color);