From: jdlrobson Date: Wed, 4 Mar 2015 19:59:10 +0000 (-0800) Subject: Enable mw-ui-radio styles on Special:Preferences X-Git-Tag: 1.31.0-rc.0~12085^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=60e9f3159eac5653cd68ebf053a5cc4245ed6dfa;p=lhc%2Fweb%2Fwiklou.git Enable mw-ui-radio styles on Special:Preferences This makes the styling of the mobile version of Special:Preferences more consistent http://localhost:8080/wiki/Special:Preferences/skin?useformat=mobile Change-Id: I67aaf1bf5e0e2eaccf948ecacd1860e6e3b31b04 --- diff --git a/includes/htmlform/HTMLRadioField.php b/includes/htmlform/HTMLRadioField.php index 8765407b05..0f00540890 100644 --- a/includes/htmlform/HTMLRadioField.php +++ b/includes/htmlform/HTMLRadioField.php @@ -56,7 +56,7 @@ class HTMLRadioField extends HTMLFormField { $html .= ' ' . Html::rawElement( 'div', - array( 'class' => 'mw-htmlform-flatlist-item' ), + array( 'class' => 'mw-htmlform-flatlist-item mw-ui-radio' ), $radio ); } diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index 31d679a237..f9d1e8a636 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -356,6 +356,7 @@ class SpecialPage { if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $out->addModuleStyles( array( 'mediawiki.ui.input', + 'mediawiki.ui.radio', 'mediawiki.ui.checkbox', ) ); }