Bug 1617949 - Set a custom color rule on open editable menulist r=aleca
authorJonathan Michalon <dev@michalon.eu>
Tue, 24 Mar 2020 16:46:35 +0000
changeset 38566 17149d0a4ffcaf84cfcdc7b6b69e0ea68af1f947
parent 38565 58f8cf2d80892b5dec578a574222107b78d2ecf6
child 38567 47ff041ec6965ada4b00104269a5954400cb8dde
push id400
push userclokep@gmail.com
push dateMon, 04 May 2020 18:56:09 +0000
reviewersaleca
bugs1617949
Bug 1617949 - Set a custom color rule on open editable menulist r=aleca This is needed because background color is already custom but themes may set a text color not compatible with our background. Differential Revision: https://phabricator.services.mozilla.com/D65088
mail/themes/linux/mail/compose/messengercompose.css
mail/themes/linux/mail/menulist.css
--- a/mail/themes/linux/mail/compose/messengercompose.css
+++ b/mail/themes/linux/mail/compose/messengercompose.css
@@ -232,16 +232,20 @@ menulist:-moz-locale-dir(rtl) > .menulis
 #msgIdentity[editable="true"] > .menulist-dropmarker {
   display: none;
 }
 
 #msgIdentity.addressingWidget-separator::after {
   margin-inline-end: -32px;
 }
 
+#msgIdentity[open="true"] {
+  color: -moz-FieldText;
+}
+
 /* ::::: format toolbar ::::: */
 
 #FormatToolbar {
   -moz-appearance: none;
   color: WindowText;
   margin-left: 3px;
   margin-right: 3px;
   padding-block: 4px;
--- a/mail/themes/linux/mail/menulist.css
+++ b/mail/themes/linux/mail/menulist.css
@@ -20,8 +20,12 @@ menulist[is="menulist-editable"][editabl
   margin-top: -2px;
   margin-bottom: -2px;
   margin-inline-end: -2.4em;
 }
 
 menulist[is="menulist-editable"][editable="true"] html|*.menulist-input {
   margin-inline-end: 6px;
 }
+
+menulist[open="true"] html|*.textbox-input {
+  color: -moz-FieldText;
+}