[wp-trac] [WordPress Trac] #21697: Twenty Twelve: Small navigation not showing with JS off
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 26 20:02:40 UTC 2012
#21697: Twenty Twelve: Small navigation not showing with JS off
---------------------------+-----------------------------
Reporter: Jayjdk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords: has-patch
---------------------------+-----------------------------
When a user browses with javascript turned off and with a browser width <
600px, there's no way to see the navigation.
My suggestion would be to add a `no-js` class to the html/body tag as the
dashboard does.
When use CSS to show the navigation and hide the button:
{{{
.no-js .main-navigation ul.nav-menu {
display: block;
}
.no-js .menu-toggle {
display: none;
}
}}}
The code used in the dashboard to do it is:
{{{
document.body.className = document.body.className.replace('no-js','js');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21697>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list