Bug 1022550 - Fix the color of action buttons in Downloads Panel to satisfy High Contrast mode. r=dao a=jcristau
authorSean Lee <selee@mozilla.com>
Fri, 25 Nov 2016 11:14:36 +0100
changeset 349987 279134247633b312459dddf748634374f148aade
parent 349986 d2e232a08cc9c897a0c6d425bed3581e7ef01995
child 349988 934c375788011ec2d6ab60a019657acdce054e6f
push id10515
push userkwierso@gmail.com
push dateWed, 04 Jan 2017 23:09:31 +0000
treeherdermozilla-aurora@279134247633 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, jcristau
bugs1022550
milestone52.0a2
Bug 1022550 - Fix the color of action buttons in Downloads Panel to satisfy High Contrast mode. r=dao a=jcristau
browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
browser/themes/shared/downloads/downloads.inc.css
--- a/browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
+++ b/browser/themes/shared/downloads/allDownloadsViewOverlay.inc.css
@@ -91,17 +91,16 @@
   padding: 5px;
   color: inherit;
 }
 
 .downloadButton > .button-box {
   -moz-appearance: none;
   padding: 2px !important;
   border-radius: 50%;
-  color: graytext;
 }
 
 .downloadButton > .button-box > .button-icon {
   width: 16px;
   height: 16px;
   margin: 0;
   filter: url("chrome://browser/skin/filters.svg#fill");
   fill: currentColor;
@@ -115,20 +114,16 @@
   background-color: graytext;
   color: -moz-field;
 }
 
 .downloadButton:hover:active > .button-box {
   background-color: -moz-fieldtext;
 }
 
-@itemFocused@ > .downloadButtonArea > .downloadButton > .button-box {
-  color: inherit;
-}
-
 @itemFocused@ > .downloadButtonArea > .downloadButton:hover > .button-box {
   background-color: HighlightText;
   color: Highlight;
 }
 
 @itemFocused@ > .downloadButtonArea > .downloadButton:hover:active > .button-box {
   background-color: -moz-field;
   color: -moz-fieldtext;
--- a/browser/themes/shared/downloads/downloads.inc.css
+++ b/browser/themes/shared/downloads/downloads.inc.css
@@ -255,17 +255,17 @@ richlistitem[type="download"] > .downloa
 
 .downloadButton {
   -moz-appearance: none;
   min-width: 58px;
   margin: 0;
   border: none;
   background: transparent;
   padding: 8px;
-  color: graytext;
+  color: inherit;
 }
 
 .downloadButton > .button-box > .button-icon {
   width: 16px;
   height: 16px;
   margin: 1px;
   filter: url("chrome://browser/skin/filters.svg#fill");
   fill: currentColor;
@@ -302,20 +302,16 @@ richlistitem[type="download"] > .downloa
 
 @item@[verdict="Malware"]:hover,
 @item@[verdict="Malware"]:hover:active,
 @item@[verdict="Malware"][showingsubview] {
   background-color: #aa1b08;
   color: white;
 }
 
-@item@[verdict="Malware"]:hover > .downloadButtonArea > .downloadButton {
-  color: inherit;
-}
-
 /*** Button icons ***/
 
 .downloadIconCancel > .button-box > .button-icon {
   list-style-image: url("chrome://browser/skin/panel-icons.svg#cancel");
 }
 
 .downloadIconShow > .button-box > .button-icon {
 %ifdef XP_MACOSX