checkbox.less: Set cursor on label instead of pseudo element
authorPrateek Saxena <prtksxna@gmail.com>
Thu, 18 Sep 2014 18:04:06 +0000 (11:04 -0700)
committerPrateek Saxena <prtksxna@gmail.com>
Thu, 18 Sep 2014 18:11:32 +0000 (11:11 -0700)
Bug: 70474
Change-Id: I4b8edd987b724241f748d7891991f0cd7dc80b1b

resources/src/mediawiki.ui/components/checkbox.less

index 6d6fdde..f7f7460 100644 (file)
@@ -44,6 +44,8 @@
 
                // the pseudo before element of the label after the checkbox now looks like a checkbox
                & + label {
+                       cursor: pointer;
+
                        &::before {
                                                content: '';
                                                position: absolute;
@@ -54,7 +56,6 @@
                                                width: @checkboxSize;
                                                height: @checkboxSize;
                                                background-color: #fff;
-                                               cursor: pointer;
                                                border: 1px solid grey;
                                        }
                }
                }
 
                // disabled checked boxes have a gray background
-               &:disabled + label::before {
-                       background-color: lightgrey;
+               &:disabled + label {
+                       cursor: default;
+
+                       &::before {
+                               background-color: lightgrey;
+                       }
                }
        }
 }