[wp-trac] [WordPress Trac] #27075: Twenty Fourteen: add "button" CSS class for styling elements as buttons
WordPress Trac
noreply at wordpress.org
Sun Feb 9 00:54:25 UTC 2014
#27075: Twenty Fourteen: add "button" CSS class for styling elements as buttons
------------------------------+-----------------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.8
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
It is often desirable to style links or other elements as buttons for
various purposes. In-content this allows very important (user-flow-type)
links to gain emphasis (ex. "become a member" at the end of an about
page). In plugins, it allows buttons that aren't technically buttons to
inherit the theme's styling instead of creating their own, duplicating the
theme's styling on a custom id (ex. Jetpack's infinite scroll), or using
hacks to use the button-type elements that are styled by the theme.
In Twenty Fourteen itself, `.contributor-posts-link` would benefit from
using `.button` for its generic button styling, plus the more specific
class for styling specific to that particular button.
The use of the .button class in `wp-admin` provides inspiration for this
proposal, as it has use cases on the front-end as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27075>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list