Bug 1545016 - Fix disabled checkbox/radio colors in common.inc.css. r=dao
authorTim Nguyen <ntim.bugs@gmail.com>
Wed, 17 Apr 2019 09:09:03 +0000
changeset 469782 638af359adcb
parent 469781 769b2f5bff88
child 469783 ab355e822efb
push id35882
push usercbrindusan@mozilla.com
push dateWed, 17 Apr 2019 15:54:01 +0000
treeherdermozilla-central@37185c0ae520 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1545016
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1545016 - Fix disabled checkbox/radio colors in common.inc.css. r=dao Differential Revision: https://phabricator.services.mozilla.com/D27855
toolkit/themes/shared/in-content/common.inc.css
--- a/toolkit/themes/shared/in-content/common.inc.css
+++ b/toolkit/themes/shared/in-content/common.inc.css
@@ -536,17 +536,21 @@ xul|checkbox[checked] > xul|*.checkbox-c
 }
 
 html|input[type="checkbox"]:checked {
   background-image: url("chrome://global/skin/icons/check.svg");
   -moz-context-properties: fill;
   fill: #2292d0;
 }
 
-xul|checkbox[disabled="true"] > xul|*.checkbox-check,
+xul|checkbox[disabled="true"] {
+  color: inherit;
+}
+
+xul|checkbox[disabled="true"],
 html|input[type="checkbox"]:disabled {
   opacity: 0.5;
 }
 
 xul|richlistitem > xul|*.checkbox-check {
   margin: 3px 6px;
 }
 
@@ -576,17 +580,18 @@ xul|radio:not([disabled="true"]):hover >
 }
 
 xul|*.radio-check[selected] {
   list-style-image: url("chrome://global/skin/in-content/radio.svg");
   -moz-context-properties: fill;
   fill: #2292d0;
 }
 
-xul|radio[disabled="true"] > xul|*.radio-check {
+xul|radio[disabled="true"] {
+  color: inherit;
   opacity: 0.5;
 }
 
 xul|*.radio-label-box {
   margin-inline-start: -1px; /* negative margin for the transparent border */
   margin-inline-end: 8px;
   padding-inline-start: 0;
 }