Bug 1338219 - Disable platform appearance for custom styled popups on Linux to allow for custom colors to be used. r?mconley draft
authorJared Wein <jwein@mozilla.com>
Thu, 09 Feb 2017 12:47:36 -0500
changeset 481389 c688eee4bb5913c22a9a7c400b14d974f6ebd973
parent 481388 7bbc9e142985ddd36ae8f80470ca3a053475bf04
child 481472 f1d230c4b838da8fe7200def634652d8c146d20e
push id44777
push userbmo:jaws@mozilla.com
push dateThu, 09 Feb 2017 17:49:43 +0000
reviewersmconley
bugs1338219
milestone54.0a1
Bug 1338219 - Disable platform appearance for custom styled popups on Linux to allow for custom colors to be used. r?mconley MozReview-Commit-ID: EypNDL6BwF3
toolkit/themes/linux/global/menu.css
toolkit/themes/linux/global/popup.css
--- a/toolkit/themes/linux/global/menu.css
+++ b/toolkit/themes/linux/global/menu.css
@@ -31,16 +31,23 @@ menuitem[_moz-menuactive="true"] {
   color: -moz-menuhovertext;
   background-color: -moz-menuhover;
 }
 
 menuitem[customoptionstyling="true"] {
   -moz-appearance: none;
 }
 
+menuitem[customoptionstyling="true"][_moz-menuactive="true"] {
+  /* -moz-menuhovertext and -moz-menuhover only apply
+     when -moz-appearance is set to menuitem. */
+  color: highlighttext;
+  background-color: highlight;
+}
+
 menu[disabled="true"],
 menuitem[disabled="true"],
 menucaption[disabled="true"] {
   color: GrayText;
 }
 
 menubar > menu {
   padding: 0px 4px;
--- a/toolkit/themes/linux/global/popup.css
+++ b/toolkit/themes/linux/global/popup.css
@@ -94,8 +94,11 @@ tooltip[titletip="true"] {
 
 /* rules for popups associated with menulists */
 
 menulist > menupopup {
   padding: 0px;
   min-width: 0px;
 }
 
+menupopup[customoptionstyling="true"] {
+  -moz-appearance: none;
+}