Check for isVForm() and apply styling matching the default submit button
when generating alternate form submit buttons.
Change-Id: Ia3313087248af1537ac4740694846b6ff1187b1a
$attrs['id'] = $button['id'];
}
- if ( $useMediaWikiUIEverywhere ) {
+ if ( $this->isVForm() || $useMediaWikiUIEverywhere ) {
if ( isset( $attrs['class'] ) ) {
$attrs['class'] .= ' mw-ui-button';
} else {
$attrs['class'] = 'mw-ui-button';
}
+ if ( $this->isVForm() ) {
+ $attrs['class'] .= ' mw-ui-big mw-ui-block';
+ }
}
$buttons .= Html::element( 'input', $attrs ) . "\n";