Bug 1541045 - Drag space checkbox should be grey out when disabled r=Gijs
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 11 Apr 2019 15:38:57 +0000
changeset 469032 70ed6fa7f92135943a370c39dffb5c0895350b01
parent 469031 c18ecd346791c201683180481173ea1af23c4594
child 469033 78ed7f9d65666d570e1a87195c1ab5434d588fb8
push id82933
push usergijskruitbosch@gmail.com
push dateThu, 11 Apr 2019 15:39:29 +0000
treeherderautoland@70ed6fa7f921 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1541045
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 1541045 - Drag space checkbox should be grey out when disabled r=Gijs Differential Revision: https://phabricator.services.mozilla.com/D27065
toolkit/content/widgets/checkbox.js
--- a/toolkit/content/widgets/checkbox.js
+++ b/toolkit/content/widgets/checkbox.js
@@ -25,16 +25,17 @@ class MozCheckbox extends MozElements.Ba
         // Prevent page from scrolling on the space key.
         event.preventDefault();
       }
     });
   }
 
   static get inheritedAttributes() {
     return {
+      ".checkbox-check": "disabled",
       ".checkbox-label": "text=label,accesskey",
       ".checkbox-icon": "src",
     };
   }
 
   connectedCallback() {
     if (this.delayConnectedCallback()) {
       return;