Opened 18 years ago
Closed 16 years ago
#5480 closed enhancement (worksforme)
Main navigation move 'current' class declaration from <a> to <li>
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.5 |
| Component: | UI | Keywords: | |
| Focuses: | Cc: |
Description
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
Attachments (3)
Change History (11)
#1
@
18 years ago
- Keywords admin nav removed
- Milestone changed from 2.5 to 2.6
- Owner changed from anonymous to hempsworth
- Status changed from new to assigned
- Summary changed from Enhance admin navigation CSS style by moving class declaration to proper location to Main navigation move 'current' class declaration from <a> to <li>
- Type changed from defect to enhancement
- Version set to 2.5
#2
@
18 years ago
- Keywords has-patch added
- Resolution set to fixed
- Status changed from assigned to closed
#3
@
18 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Oops, sorry about that!
Needs to be committed first :P
#5
@
17 years ago
- Component changed from Administration to UI
- Keywords needs-patch added; has-patch removed
- Milestone changed from 2.9 to Future Release
Note: See
TracTickets for help on using
tickets.
Definitely agree with this, I was surprised to see the current method when I was making the patch for #5868
I'm going to make two patches, one which changes the position of [class="current"] just in the main navigation, and one which changes it for all of the navigation lists.
Ideally we want the latter, but I'm unsure as to whether it might break some plugins?