Remove a hack, and a hack for the hack, for MediaWiki UI input fields
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 13 Mar 2015 19:22:02 +0000 (20:22 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 14 Mar 2015 15:18:31 +0000 (15:18 +0000)
Hack #1: We were ignoring the 'size' attribute of input fields when
  $wgUseMediaWikiUIEverywhere was true. Let's not do that.

Hack #2: We were setting a min-width for MediaWiki UI input fields,
  because fields which were supposed to be full-line were becoming
  tiny because of hack #1. Let's not do that either.

Bug: T92498
Change-Id: I1d2c6c9eb60b52a7267c122a719cfdaa1f74f815

includes/Html.php
resources/src/mediawiki.ui/components/inputs.less

index 8799225..ed77729 100644 (file)
@@ -151,10 +151,6 @@ class Html {
                        } else {
                                $attrs['class'] = 'mw-ui-input';
                        }
-
-                       // Note that size can effect the desired width rendering of mw-ui-input elements
-                       // so it is removed. Left intact when mediawiki ui not enabled.
-                       unset( $attrs['size'] );
                }
                return $attrs;
        }
index 1992cce..2f76131 100644 (file)
@@ -128,11 +128,3 @@ input.mw-ui-input-large {
        font-weight: bold;
        line-height: 1.25em;
 }
-
-// Tablet and desktop specific styling tweaks.
-@media all and (min-width: 768px) {
-       // Make inline elements take up a sensible amount of the screen on wider devices.
-       .mw-ui-input-inline {
-               min-width: 320px;
-       }
-}