mediawiki.ui: Suppress default webkit-appearance of buttons from iOS
authorkaldari <rkaldari@wikimedia.org>
Wed, 30 Apr 2014 18:06:58 +0000 (11:06 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 30 Apr 2014 20:39:30 +0000 (20:39 +0000)
On iOS, buttons made with <input type="submit"> (<button> is not affected)
have a native webkit-appearance that, unlike the desktop equivalent, is
not removed when properties like display, border and background are set.

It remains applied causing it to render awkwardly. Manually reset this
property to remove the default styling.

Bug: 64264
Change-Id: I65525e79503937fd42d4df01a1ce63936f4f92e4

resources/src/mediawiki.ui/components/default/buttons.less

index f7a7eae..78b0b33 100644 (file)
@@ -31,6 +31,9 @@
        margin: 0;
        .box-sizing(border-box);
 
+       // Disable weird iOS styling
+       -webkit-appearance: none;
+
        // IE6/IE7 hack
        // http://stackoverflow.com/a/5838575/365238
        *display: inline;