Merge "Optimise checkboxes for Firefox mobile"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 9 Oct 2014 22:37:54 +0000 (22:37 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 9 Oct 2014 22:37:54 +0000 (22:37 +0000)
1  2 
resources/src/mediawiki.ui/components/checkbox.less

  //   <input type="checkbox" id="kss-example-5"><label for="kss-example-5">Standard checkbox</label>
  // </div>
  // <div class="mw-ui-checkbox">
 -//   <input type="checkbox" id="kss-example-5-2" disabled><label for="kss-example-5-2">Disabled checkbox</label>
 +//   <input type="checkbox" id="kss-example-5-checked" checked><label for="kss-example-5-checked">Standard checked checkbox</label>
 +// </div>
 +// <div class="mw-ui-checkbox">
 +//   <input type="checkbox" id="kss-example-5-disabled" disabled><label for="kss-example-5-disabled">Disabled checkbox</label>
 +// </div>
 +// <div class="mw-ui-checkbox">
 +//   <input type="checkbox" id="kss-example-5-disabled-checked" disabled checked><label for="kss-example-5-disabled-checked">Disabled checked checkbox</label>
  // </div>
  //
  // Styleguide 5.
@@@ -48,6 -42,8 +48,8 @@@
                // ensure the invisible checkbox takes up the required width
                width: @checkboxSize;
                height: @checkboxSize;
+               // This is needed for Firefox mobile (See bug 71750 to workaround default Firefox stylesheet)
+               max-width: none;
  
                // the pseudo before element of the label after the checkbox now looks like a checkbox
                & + label {