Bug 1338219 - Disable platform appearance for custom styled popups on Linux to allow for custom colors to be used. r=mconley
authorJared Wein <jwein@mozilla.com>
Thu, 09 Feb 2017 12:47:36 -0500
changeset 481552 44281228fbffe9d939e9a2b5b4ce304c65ee5a9d
parent 481551 48a31d32bd89c1d47ec57553df02399f2834b959
child 481553 e9abd869ce60b2d79f588d9fb54d85588e82da87
push id44840
push userbmo:rchien@mozilla.com
push dateFri, 10 Feb 2017 01:03:57 +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;
+}