From: Bryan Davis Date: Fri, 5 Sep 2014 21:56:19 +0000 (-0600) Subject: Apply vform styling to HTMLForm buttons X-Git-Tag: 1.31.0-rc.0~14097^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=dd107dda969ac77b86a89b0e98fcf85352c6035d;p=lhc%2Fweb%2Fwiklou.git Apply vform styling to HTMLForm buttons Check for isVForm() and apply styling matching the default submit button when generating alternate form submit buttons. Change-Id: Ia3313087248af1537ac4740694846b6ff1187b1a --- diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index fc2222ad8c..c810f68d00 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -936,12 +936,15 @@ class HTMLForm extends ContextSource { $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";