Project

General

Profile

Actions

Patch #44293

closed

Add a caret to the account menu to indicate it opens a dropdown

Added by Vincent Robert about 1 month ago. Updated 17 days ago.

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

Description

In 7.0.0, the account menu in the top bar (avatar in the top-right corner) became a dropdown (#31353).
Its trigger is a plain avatar with no visual affordance hinting that it opens a menu.
First-time users may not realize it is clickable.

This patch adds a small caret next to the avatar, using the existing `.dropdown` / `.dropdown-content` markup and `:has()` selector already used by the component: the caret rotates 180° while the menu is open, using CSS only (no JS change needed).

Patch attached: account_menu_caret.patch (against trunk, 2 files changed:app/views/layouts/base.html.erb, app/assets/stylesheets/dropdown.css).

diff --git a/app/assets/stylesheets/dropdown.css b/app/assets/stylesheets/dropdown.css
index 648ee5b03..8caddc15f 100644
--- a/app/assets/stylesheets/dropdown.css
+++ b/app/assets/stylesheets/dropdown.css
@@ -16,6 +16,19 @@
   text-decoration: none;
 }

+.dropdown-caret {
+  display: inline-block;
+  margin-inline-start: 6px;
+  border-inline: 4px solid transparent;
+  border-block-start: 5px solid var(--oc-gray-1);
+  border-block-end: 0;
+  transition: transform 0.15s ease;
+}
+
+.dropdown:has(> .dropdown-content:not(.hidden)) .dropdown-caret {
+  transform: rotate(180deg);
+}
+
 .dropdown-content {
   position: absolute;
   inset-block-start: 100%;
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index b294a2bff..1ae5ecf9c 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -68,6 +68,7 @@
     <div id="account" class="dropdown" data-controller="dropdown">
       <a href="#" class="dropdown-trigger" data-action="click->dropdown#toggle">
         <%= avatar(User.current, :size => "22") %>
+        <span class="dropdown-caret" aria-hidden="true"></span>
       </a>
       <div class="dropdown-content hidden" data-dropdown-target="content">
         <div class="user-info">

Files

account_menu_caret.patch (1.23 KB) account_menu_caret.patch Vincent Robert, 2026-07-28 10:30
44293-before@2x.png (3.51 KB) 44293-before@2x.png Go MAEDA, 2026-07-31 05:04
44293-after@2x.png (3.7 KB) 44293-after@2x.png Go MAEDA, 2026-07-31 05:04
0001-Add-SVG-caret-to-account-menu-44293.patch (1.94 KB) 0001-Add-SVG-caret-to-account-menu-44293.patch Marius BĂLTEANU, 2026-08-18 22:48

Related issues

Related to Redmine - Patch #44341: Increase top menu hover highlight by increasing the padding of the elementsClosedMarius BĂLTEANUActions
Related to Redmine - Feature #31353: Replace user related links in the top menu bar with a proper user menu.ClosedMarius BĂLTEANUActions
Actions #1

Updated by Go MAEDA about 1 month ago

This is a nice UI improvement. It should be included in Redmine 7.0.1.

Before:

After:

Actions #2

Updated by Marius BĂLTEANU about 1 month ago

  • Assignee set to Marius BĂLTEANU
Actions #3

Updated by Marius BĂLTEANU 23 days ago

  • Related to Patch #44341: Increase top menu hover highlight by increasing the padding of the elements added
Actions #4

Updated by Marius BĂLTEANU 23 days ago

  • Related to Feature #31353: Replace user related links in the top menu bar with a proper user menu. added
Actions #5

Updated by Marius BĂLTEANU 23 days ago

  • File 0001-Add-SVG-caret-to-account-menu-44293.patch added

I think most users are used to having an openable account menu in the top bar, but I'm happy to add the caret for extra clarity. I'd prefer to use our existing SVG icon and skip the animation, though.

Patch attached, we can include this in the next release.

Actions #6

Updated by Marius BĂLTEANU 23 days ago

  • File deleted (0001-Add-SVG-caret-to-account-menu-44293.patch)
Actions #7

Updated by Marius BĂLTEANU 23 days ago

  • File 0001-Add-SVG-caret-to-account-menu-44293.patch added

Updated the patch to fix the stroke color and to unify the styles of the SVG icon from the account menu with other potential SVG icons added by plugins in the top menu.

Actions #8

Updated by Marius BĂLTEANU 23 days ago

  • File deleted (0001-Add-SVG-caret-to-account-menu-44293.patch)
Actions #10

Updated by Marius BĂLTEANU 17 days ago

  • Status changed from New to Resolved
Actions #11

Updated by Marius BĂLTEANU 17 days ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF