Pass through 'helpInline' to OOUI FieldLayout and make true by default
authorEd Sanders <esanders@wikimedia.org>
Tue, 12 Jun 2018 14:46:48 +0000 (15:46 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 17 Aug 2018 20:34:33 +0000 (22:34 +0200)
commite5911a826c61649be1928d69f6ca7ff084ace485
tree35d04a102d070555f3b93ffa8478bc80052b531f
parent2583b65b44956bb7f93326cb8967ef7c839cdf44
Pass through 'helpInline' to OOUI FieldLayout and make true by default

This change is meant to improve the layout of Special:Preferences in
particular, but it will affect any OOUI form using help messages. It
should be a harmless or beneficial change for most of them.

Previous behavior can be restored by passing `'help-inline' => false`
to the HTMLForm factory after 'help-message'/'help-messages'/'help'.

For example:

* Special:Preferences?ooui=1#mw-prefsection-watchlist
  * Before: https://phabricator.wikimedia.org/F25025213
  * After:  https://phabricator.wikimedia.org/F25025181

* Special:ChangeEmail
  * Before: https://phabricator.wikimedia.org/F25073327
  * After:  https://phabricator.wikimedia.org/F25073328

* Special:BotPasswords/foo
  * Before: https://phabricator.wikimedia.org/F25073324
  * After:  https://phabricator.wikimedia.org/F25073326

Bug: T181854
Change-Id: Ica67fe4081dfaa8eb9e8f56fdb93530750e47012
RELEASE-NOTES-1.32
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php