Chad has uploaded a new change for review. https://gerrit.wikimedia.org/r/94276
Change subject: Give the search page a little UI love ...................................................................... Give the search page a little UI love Uses mediawiki.ui to make the input field more legible and modern, as well as giving the search button a lovely shade of blue. Screenshot: https://www.mediawiki.org/wiki/File:Search-UI-minor-tweak.png Change-Id: I7fdd9970ed5807df94c04bec1681f33523cad173 --- M includes/specials/SpecialSearch.php 1 file changed, 7 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/76/94276/1 diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index d5a6b29..27f4d40 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -88,7 +88,7 @@ $this->outputHeader(); $out = $this->getOutput(); $out->allowClickjacking(); - $out->addModuleStyles( 'mediawiki.special' ); + $out->addModuleStyles( array( 'mediawiki.special', 'mediawiki.ui' ) ); // Strip underscores from title parameter; most of the time we'll want // text form here. But don't strip underscores from actual text params! @@ -1094,10 +1094,14 @@ $out .= Html::input( 'search', $term, 'search', array( 'id' => $this->profile === 'advanced' ? 'powerSearchText' : 'searchText', 'size' => '50', - 'autofocus' + 'autofocus', + 'class' => 'mw-ui-input', ) ) . "\n"; $out .= Html::hidden( 'fulltext', 'Search' ) . "\n"; - $out .= Xml::submitButton( $this->msg( 'searchbutton' )->text() ) . "\n"; + $out .= Xml::submitButton( + $this->msg( 'searchbutton' )->text(), + array( 'class' => array( 'mw-ui-button', 'mw-ui-primary' ) ) + ) . "\n"; return $out . $this->didYouMeanHtml; } -- To view, visit https://gerrit.wikimedia.org/r/94276 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7fdd9970ed5807df94c04bec1681f33523cad173 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Chad <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
