Bug 1583237 - Add fallback to set the in-content-deemphasized-text color in case the user has prefers-color-scheme set to dark but the in-content dark-mode pref is disabled. r=ntim a=lizzard
authorJared Wein <jwein@mozilla.com>
Mon, 23 Sep 2019 21:08:58 +0000
changeset 555472 efdbcf5c4addc6f6ef8be5c4df916c9b3a8ba1b2
parent 555471 4376a47bfee178988b56b5296758054cc5a09a66
child 555473 d64a120a589b9197889592531692b86f5922c609
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersntim, lizzard
bugs1583237
milestone70.0
Bug 1583237 - Add fallback to set the in-content-deemphasized-text color in case the user has prefers-color-scheme set to dark but the in-content dark-mode pref is disabled. r=ntim a=lizzard Differential Revision: https://phabricator.services.mozilla.com/D46859
browser/components/aboutlogins/content/components/login-item.css
--- a/browser/components/aboutlogins/content/components/login-item.css
+++ b/browser/components/aboutlogins/content/components/login-item.css
@@ -15,16 +15,21 @@
 }
 
 /* Only overwrite the deemphasized text color in non-dark mode. */
 @media not all and (prefers-color-scheme: dark) {
   :host {
     --in-content-deemphasized-text: #737373;
   }
 }
+@supports not (-moz-bool-pref("browser.in-content.dark-mode")) {
+  :host {
+    --in-content-deemphasized-text: #737373;
+  }
+}
 
 form {
   flex-grow: 1;
 }
 
 :host([data-editing]) .edit-button,
 :host([data-editing]) .copy-button,
 :host([data-editing]) login-footer,