Yuvipanda has submitted this change and it was merged.

Change subject: Style input using mw-ui-input
......................................................................


Style input using mw-ui-input

Change-Id: I5744b844b0ecd1381eef71705bbd3f603bd69985
---
M SpecialUrlShortener.php
M less/ext.urlShortener.special.less
2 files changed, 2 insertions(+), 6 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git a/SpecialUrlShortener.php b/SpecialUrlShortener.php
index 810f707..f0e914a 100644
--- a/SpecialUrlShortener.php
+++ b/SpecialUrlShortener.php
@@ -52,6 +52,7 @@
                $this->getOutput()->addJsConfigVars( array(
                        'wgUrlShortenerDomainsWhitelist' => 
UrlShortenerUtils::getWhitelistRegex(),
                ) );
+               $this->getOutput()->addModuleStyles( 'mediawiki.ui' );
                // Send Styles anyway, even without JS
                $this->getOutput()->addModuleStyles( 
'ext.urlShortener.special.styles' );
 
@@ -82,6 +83,7 @@
                return array(
                        'url' => array(
                                'class' => 'HTMLTextField',
+                               'cssclass' => 'mw-ui-input',
                                'validation-callback' => array( $this, 
'validateURL' ),
                                'required' => true,
                                'type' => 'url',
diff --git a/less/ext.urlShortener.special.less 
b/less/ext.urlShortener.special.less
index 9f33f01..88a0270 100644
--- a/less/ext.urlShortener.special.less
+++ b/less/ext.urlShortener.special.less
@@ -18,12 +18,6 @@
        margin-bottom: 8px;
 }
 
-#mwe-urlshortener-url-input {
-       font-size: 1.2em;
-       border-radius: 2px;
-       line-height: 1.4em;
-}
-
 #mwe-urlshortener-form-footer {
        display: none;
        margin-top: 1em;

-- 
To view, visit https://gerrit.wikimedia.org/r/149905
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5744b844b0ecd1381eef71705bbd3f603bd69985
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UrlShortener
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Prtksxna <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to