[wp-trac] [WordPress Trac] #20579: Adding HTML5 Input Types default styling to twentyten and twentyeleven

WordPress Trac noreply at wordpress.org
Fri Nov 16 21:42:30 UTC 2012


#20579: Adding HTML5 Input Types default styling to twentyten and twentyeleven
-----------------------------+------------------
 Reporter:  georgestephanis  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  3.5
Component:  Bundled Theme    |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------

Comment (by lancewillett):

 I think a smarter approach to this would be to use a CSS selector to
 blacklist the input types we don't want to apply styles to: checkbox,
 radio, submit, button, color, file ... so something like
 {{{input[type^=checkbox]}}}. That'd make it much cleaner, and also benefit
 us when newer types are added in the future -- they'll look great without
 having to be explicitly added to the stylesheet.

 Here's a full list of the input types to cover: http://www.w3.org/TR/html-
 markup/input.html

 Note: I also think we take a pragmatic approach, and just patch up the
 most common and the ones most likely to occur in WordPress output: email,
 url, password, text and just leave the rest to plugins or child themes to
 add if needed.

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


More information about the wp-trac mailing list