Project

General

Profile

Actions

Patch #44341

closed

Increase top menu hover highlight by increasing the padding of the elements

Added by Vincent Robert 21 days ago. Updated 10 days ago.

Status:
Closed
Priority:
Normal
Category:
UI
Target version:

Description

The top menu highlights the entry under the cursor with a background color, but the highlight is only as tall and as wide as the label itself.

The attached patch makes the links fill the bar. The links become flex boxes with their own padding, so the highlight spans the full height of the bar and extends slightly past the label.

Everything else stays where it is. Labels, avatar and bar height are unchanged.

The classic theme draws icons behind the top menu links with padding-inline-start and background-position; both are shifted by 6px so that its labels and icons also stay in place.


Files

topmenu_hover_full_height.patch (2.47 KB) topmenu_hover_full_height.patch Vincent Robert, 2026-08-13 16:31
before.png (11.2 KB) before.png Vincent Robert, 2026-08-13 16:38
after.png (11.2 KB) after.png Vincent Robert, 2026-08-13 16:38
0001-Improve-top-menu-hover-44341.patch (1.73 KB) 0001-Improve-top-menu-hover-44341.patch Marius BĂLTEANU, 2026-08-18 23:36
clipboard-202608190037-mpymz.png (17.5 KB) clipboard-202608190037-mpymz.png Marius BĂLTEANU, 2026-08-18 23:37
0002-Top-menu-hover-highlight-cover-the-height-of-the-bar.patch (1.21 KB) 0002-Top-menu-hover-highlight-cover-the-height-of-the-bar.patch Marius BĂLTEANU, 2026-08-18 23:38

Related issues

Related to Redmine - Patch #44293: Add a caret to the account menu to indicate it opens a dropdownClosedMarius BĂLTEANUActions
Related to Redmine - Defect #44351: Fix top menu position in Classic themeClosedMarius BĂLTEANUActions
Actions #1

Updated by Go MAEDA 17 days ago

  • Target version set to Candidate for next major release
Actions #2

Updated by Marius BĂLTEANU 15 days ago

  • Related to Patch #44293: Add a caret to the account menu to indicate it opens a dropdown added
Actions #3

Updated by Marius BĂLTEANU 15 days ago

  • Related to Defect #44351: Fix top menu position in Classic theme added
Actions #4

Updated by Marius BĂLTEANU 15 days ago

I like the improvement, but I think we can achieve (almost) the same with less changes, please find below two patches:

1. 0001-Improve-top-menu-hover-44341.patch
Minimal changes that improve the current hover state of the top menu, but without covering the full height of the top menu. Now, the top menu behaves similarly to the main menu. It also adds the hover effect to the account menu:

2. 0002-Top-menu-hover-highlight-cover-the-height-of-the-bar.patch
This change the hover to cover the full height of the top menu.

Both patches applies on top of #44293.

Actions #5

Updated by Marius BĂLTEANU 15 days ago

  • Assignee set to Marius BĂLTEANU
Actions #6

Updated by Marius BĂLTEANU 10 days ago

  • Subject changed from Top menu hover highlight does not cover the height of the bar to Increase top menu hover highlight by increasing the padding of the elements
  • Status changed from New to Resolved

Committed the first patch. If full-height hover for the top menu is still considered an improvement, please open a separate issue to discuss it further.

Actions #7

Updated by Marius BĂLTEANU 10 days ago

  • Target version changed from Candidate for next major release to 7.0.1
Actions #8

Updated by Marius BĂLTEANU 10 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF