Bug 1536059 - change checkbox attribute inheritance order to make label accesskey formatting work, r=bgrins a=pascalc
authorAlexander Surkov <surkov.alexander@gmail.com>
Mon, 18 Mar 2019 17:48:06 +0000
changeset 525644 90baa49d098a77a3c68471b4f40ead850c40cbc7
parent 525643 8e2c346fa3e4408226f3ef85cf74637e9c6b487a
child 525645 bfc174c4deb853203c5cf7d1c94571f9878d6d21
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, pascalc
bugs1536059
milestone67.0
Bug 1536059 - change checkbox attribute inheritance order to make label accesskey formatting work, r=bgrins a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D23885
toolkit/content/widgets/checkbox.js
--- a/toolkit/content/widgets/checkbox.js
+++ b/toolkit/content/widgets/checkbox.js
@@ -25,17 +25,17 @@ class MozCheckbox extends MozElements.Ba
         // Prevent page from scrolling on the space key.
         event.preventDefault();
       }
     });
   }
 
   static get inheritedAttributes() {
     return {
-      ".checkbox-label": "accesskey,text=label",
+      ".checkbox-label": "text=label,accesskey",
       ".checkbox-icon": "src",
     };
   }
 
   connectedCallback() {
     if (this.delayConnectedCallback()) {
       return;
     }