Feature #3895

CSS class "selected" should be assigned to selected items in the top-menu

Added by Albrecht Backhaus about 12 years ago. Updated over 10 years ago.

Status:NewStart date:2009-09-20
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:

Description

Currently you can't address the selcted menu item of the top-menu with CSS because there is no class "selected" assigned to the active tab. Some plugins are doing that already for their entries in the top-menu and the project menues are also working in this way. This should also be implemented for the redmine core.

It will increase redmines "themeability" and will bring more consistency in the css design logic if menus are handled similar.


Related issues

Duplicated by Redmine - Defect #3925: Top menu links do not have selected mode Closed 2009-09-25

History

#1 Updated by Bogdan Vlad over 10 years ago

I was able to make the top menu items take the selected class by implementing a patch for the controllers used in these menus. For example, I only had to add: menu_item :home to the welcome controller in order for the home menu item to take the selected class. Maybe others can have a more clean solution.

Also available in: Atom PDF