mw.widgets.DateInputWidget: Remove accidental 'user-select' on PHP widget's input
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 29 May 2017 16:22:33 +0000 (18:22 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 29 May 2017 16:22:33 +0000 (18:22 +0200)
This is only meant to apply to the JS widget's handle.

Also moved another block of CSS only meant to apply to the JS widget.
This wasn't causing any actual issues though.

Bug: T166416
Change-Id: I6e58a38a1d5a8fb4b581734b02cc4f12640b4a75

resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.less

index cad2b02..3ecdea8 100644 (file)
@@ -47,7 +47,6 @@
                position: relative;
                .oo-ui-box-sizing( border-box );
                width: 100%;
-               .oo-ui-unselectable();
                cursor: pointer;
                padding: 0.5em 1em;
                border: 1px solid #a2a9b1;
                 * Equal to line height + top padding + bottom padding
                 */
                height: 2.275em;
+       }
+
+       &-handle {
+               .oo-ui-unselectable();
 
                > .oo-ui-labelElement-label {
                        padding: 0;