[wp-trac] [WordPress Trac] #21598: Update default button styles in core
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 8 04:58:36 UTC 2012
#21598: Update default button styles in core
-------------------------------------+------------------
Reporter: lessbloat | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: UI | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------
Comment (by koopersmith):
In [21789]:
{{{
#!CommitTicketReference repository="" revision="21789"
New button styles.
Using the new buttons:
* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons
can add a style by adding additional classes. To make a primary button,
add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default
size, you can add "button-large", "button-small", or "button-tiny".
For backwards compatibility reasons, "button-primary" and "button-
secondary" both work as standalone classes.
get_submit_button() has been adjusted to handle shorthand button classes
(i.e. button classes can be passed without the "button-" prefix).
props lessbloat, helenyhou, trepmal, nacin. see #21598.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21598#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list