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

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 15 17:55:05 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 nacin):

 When type="number" is set, size="2" is ignored. And thus, you end up with
 [attachment:http://core.trac.wordpress.org/attachment/ticket/17863/Screen%20Shot%202012-03-15%20at%2012.40.22%20PM.png
 ryan's screenshot]. So, we can set max values (not preferable), add the
 small-text class to limit it to about 60px, or change them back to
 type="text".

 I think type="number" works well in a few places, such as on options-
 discussion.php, where it looks nice and appears to be helpful. However, it
 has caused visual issues in a few other places, obviously. I am going to
 review each change from the perspectives of both code and UI, and will
 probably revert some.

 There is a UX consideration here as well. The pagination input only works
 when you hit enter after changing the value. Type type enter is much
 better than click click enter. It's not like clicking the up arrow
 refreshes the page via ajax — you still have to go to the keyboard, as
 there's no button. So those should be type="text" for the time being.

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


More information about the wp-trac mailing list