[wp-trac] [WordPress Trac] #17863: HTML5 input type=number in admin settings

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 17 20:17:45 UTC 2012


#17863: HTML5 input type=number in admin settings
--------------------------------+------------------------------
 Reporter:  niallkennedy        |       Owner:  georgestephanis
     Type:  task (blessed)      |      Status:  reopened
 Priority:  normal              |   Milestone:  3.4
Component:  Administration      |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch revert  |
--------------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:49 georgestephanis]:
 > We could just use CSS to hide the number scroll buttons.

 Perhaps but it needs to address all browsers (currently WebKit and Opera,
 soon FF). Also if I remember correctly some css there can freeze/crash
 some versions of Chrome, so... Maybe better not to use css hacks for that.

 > Keep the keyboard on mobile, but don't allow any UI changes.

 That seems to circle back to having a way to detect all mobile
 devices/browsers from PHP (the current $is_iphone global works for most
 but not all). Then it would be as easy as setting these fields to
 type="number" only when on mobile and having the css `input[type="number"]
 { width: whatever; }`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17863#comment:50>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list