[wp-trac] [WordPress Trac] #21562: Twenty Twelve: Hide the "Show navigation" button when there is no navigation to show.

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 17 19:30:59 UTC 2012


#21562: Twenty Twelve: Hide the "Show navigation" button when there is no
navigation to show.
---------------------------+------------------
 Reporter:  cfinke         |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  3.5
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------

Comment (by obenland):

 [attachment:21562.css-menu-switch.2.diff] moves the menu-switch logic from
 JS to CSS. It maintains the mobile-first approach by moving the menu
 styles for larger screens in the >600px media query.

 Renamed `theme.js` to `navigation.js`, as discussed with @lancewillett in
 IRC, since it is solely about the main navigation.

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


More information about the wp-trac mailing list