mediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 16 May 2014 15:53:33 +0000 (17:53 +0200)
committerJdlrobson <jrobson@wikimedia.org>
Thu, 26 Jun 2014 17:34:20 +0000 (17:34 +0000)
commita88f8a496b70cb2dc1c33cae5132548482352a45
treef4c235620b6b729d9f2f151b5005452b0887e27b
parent3fd9ff66f5718de594e567fd55285740e84faf9e
mediawiki.ui: Rename .mw-ui-vform-div → .mw-ui-vform-field

Require use of class instead of applying styling to all <div>s

This resolves a few FIXMEs and dramatically lowers the awkwardness
level of using mediawiki.ui.

'.mw-ui-vform-field' is a more descriptive name than '.mw-ui-vform-div'
and corresponds to the HTMLFormField PHP class in core which generates
<div>s with this CSS class.

We previously styled '.mw-ui-vform > div' the same way we styled
'.mw-ui-vform .mw-ui-vform-div', which was an annoying piece of magic
causing difficult to debug problems when one needed a different HTML
structure (like bug 63233). Explicitly using '.mw-ui-vform-field'
where applicable is a lot saner.

Change-Id: I6f0b8842f5fdf70b97decb165086d1a83428b259
includes/htmlform/HTMLFormField.php
includes/templates/Usercreate.php
includes/templates/Userlogin.php
resources/src/mediawiki.ui/components/default/forms.less