Bug 1468453 - Fix text color of malware downloads on dark themes. r=jaws draft
authorTim Nguyen <ntim.bugs@gmail.com>
Mon, 18 Jun 2018 18:18:36 +0100
changeset 808208 585e07081ab17dd53d402ac741cd556f069b1351
parent 808144 1d03f4a4af28c1af56a183f5951a45a315a6c788
child 808209 ffa1986d1c70d9a6223e565d59daf10102dfe0f5
push id113311
push userbmo:ntim.bugs@gmail.com
push dateMon, 18 Jun 2018 17:24:19 +0000
reviewersjaws
bugs1468453
milestone62.0a1
Bug 1468453 - Fix text color of malware downloads on dark themes. r=jaws MozReview-Commit-ID: GjycI1bmZcq
browser/themes/osx/downloads/downloads.css
browser/themes/windows/downloads/downloads.css
--- a/browser/themes/osx/downloads/downloads.css
+++ b/browser/themes/osx/downloads/downloads.css
@@ -20,20 +20,24 @@
   --downloads-item-details-opacity: 0.7;
 }
 
 .downloadButton:focus > .button-box {
   outline: 2px -moz-mac-focusring solid;
   outline-offset: -2px;
 }
 
-@item@[verdict="Malware"] {
+@item@[verdict="Malware"]:not(:hover) {
   color: #aa1b08;
 }
 
+:root[lwt-popup-brighttext] @item@[verdict="Malware"]:not(:hover) {
+  color: #ff0039;
+}
+
 .downloadProgress > .progress-bar {
   background-color: #3c9af8;
 }
 
 .downloadProgress[paused="true"] > .progress-bar {
   background-color: #a6a6a6;
 }
 
--- a/browser/themes/windows/downloads/downloads.css
+++ b/browser/themes/windows/downloads/downloads.css
@@ -23,20 +23,24 @@
   --downloads-item-details-opacity: 0.6;
 }
 
 @notKeyfocus@ .downloadButton:-moz-focusring {
   outline: none;
 }
 
 @media (-moz-windows-default-theme) {
-  @item@[verdict="Malware"] {
+  @item@[verdict="Malware"]:not(:hover) {
     color: #aa1b08;
   }
 
+  :root[lwt-popup-brighttext] @item@[verdict="Malware"]:not(:hover) {
+    color: #ff0039;
+  }
+
   /* Use unified color for the progressbar on default theme */
   .downloadProgress > .progress-bar {
     background-color: #3c9af8;
   }
 
   .downloadProgress[paused="true"] > .progress-bar {
     background-color: #a6a6a6;
   }