[wp-trac] [WordPress Trac] #20035: Tab styling for UI Tabs
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 13 22:40:47 UTC 2012
#20035: Tab styling for UI Tabs
---------------------------+------------------------
Reporter: aaroncampbell | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.3
Severity: normal | Resolution: duplicate
Keywords: |
---------------------------+------------------------
Comment (by TobiasBg):
Just for reference:
{{{
$( '.tabbed-content' ).tabs( {
select: function( event, ui ) {
$( ui.tab ).parent().addClass( 'wp-tab-active'
).siblings().removeClass( 'wp-tab-active' );
}
} );
}}}
worked for me in a quick test (on the HTML that aaroncampell posted in
#18909:45) and might be cleaner with jQuery selectors (e.g. if there is
more than one "tabs()" on a page).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20035#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list