HTMLFormFieldWithButton: Don't make the button primary by default
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Mar 2016 20:17:26 +0000 (21:17 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 10 Mar 2016 20:22:51 +0000 (21:22 +0100)
commit3c5a7009f5f57bc4caed92efb5fa036fdd9d9073
treee419cafeaeb85be0cf73ff9520615fdc36db08af
parent65e4a41e96da6937d8e7155d81b635ba0e124d85
HTMLFormFieldWithButton: Don't make the button primary by default

It results in multiple 'primary' buttons in forms, contrary to the
guidelines, for example on Special:Export.

Before: https://phabricator.wikimedia.org/F3605116
After: https://phabricator.wikimedia.org/F3605163

Changed Special:BotPasswords to explicitly use a 'primary' button,
since as far as I can tell it only displays a single button.

Change-Id: Ic647d2650ca635644245eb657cce045db9869fc5
includes/htmlform/HTMLFormFieldWithButton.php
includes/specials/SpecialBotPasswords.php