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 34094 c65545fc8877ce6a3d8af837d858d3779d023c80
parent 34093 a58e591462463eefa900ed706dc866c2c2173717
child 34095 feba8def888f16fd0a453a0bd979c13333da09fe
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
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);