[wp-trac] [WordPress Trac] #5480: Enhance admin navigation CSS
style by moving class declaration to proper location
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 17 23:10:13 GMT 2007
#5480: Enhance admin navigation CSS style by moving class declaration to proper
location
----------------------------+-----------------------------------------------
Reporter: oaoao | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.4
Component: Administration | Version:
Severity: normal | Keywords: admin nav
----------------------------+-----------------------------------------------
The format of the ul-based admin navigation puts the "current" class in
the link itself:
{{{
<ul id="adminmenu">
<li><a href='themes.php'>Presentation</a></li>
<li><a href='options-general.php' class="current">Options</a></li>
}}}
This is bad, and makes styling difficult. It should be in the <li>
element, as children can be targeted, but not parents.
{{{
<li class="current"><a href='options-general.php'>Options</a></li>
}}}
You can always target the link as before with
{{{
li.current a
}}}
And now you can also style the <li> element, as many tab-based CSS
approaches require.
This requires a change in:
menu-header.php
wp-admin.css
--
Ticket URL: <http://trac.wordpress.org/ticket/5480>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list