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
protected $mButtonValue;
/** @var string $mButtonType Value for the button in this field */
- protected $mButtonFlags = [ 'primary', 'progressive' ];
+ protected $mButtonFlags = [ 'progressive' ];
public function __construct( $info ) {
if ( isset( $info['buttonclass'] ) ) {
'type' => 'textwithbutton',
'label-message' => 'botpasswords-label-appid',
'buttondefault' => $this->msg( 'botpasswords-label-create' )->text(),
+ 'buttonflags' => [ 'progressive', 'primary' ],
'required' => true,
'size' => BotPassword::APPID_MAXLENGTH,
'maxlength' => BotPassword::APPID_MAXLENGTH,