#66157 closed enhancement (fixed)
Toolbar: free horizontal space on the right side
| Reported by: | lucasmdo | Owned by: | mcsf |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Toolbar | Version: | |
| Severity: | normal | Keywords: | has-patch needs-dev-note |
| Cc: | Focuses: | ui, css, administration, ui-copy |
Description
This ticket proposes to make the account menu item narrower, so the right side of the Toolbar has more space. The panel underneath stays the same.
Current behavior
The account item on the right side of the Toolbar is the widest text element in the bar. It shows a full sentence with the display name, plus the avatar.
The right side is also where plugins and hosts add their own items (notifications, site status, account links). As more items land there, the space gets tight. Long display names and long translations make it tighter.
On small screens Core already reduces this item to the avatar only. So the bar works well with a narrower account item.
Proposal
Show only the display name and the avatar in the bar. The ful l sentence moves inside the panel, next to the avatar, the username and the profile links.
Why
- More space on the right side. The account item gets around 50px narrower in English and more in many languages. That space goes to the items that need it.
- Clearer control. I believe the name and the avatar are enough to read as "your account". It is the same pattern used by most products.
- Better fit for long names and long translations. Less truncation and wrapping in the bar.
- Consistent with small screens, where Core already narrows this item.
Accessibility
- The accessible name of the account control becomes the display name. Shorter and clearer for screen reader users.
- Keyboard and focus behavior does not change. Same menu, same items.
- The full sentence is still available to everyone who opens the panel.
- RTL: no change, the text mirrors as today.
Backward compatibility
- Existing strings and translations stay in place.
- Node IDs and the menu structure stay the same. Plugins that add items to the account panel keep working.
- Sites that customize the account item text with the
gettextfilter keep working.
Related
Attachments (1)
Change History (15)
#1
@
8 weeks ago
- Summary Toolbar: free horizontal space on the right side by repositioning the account greeting → Toolbar: free horizontal space on the right side
We can also free more space for plugins when it's needed. This is a very common use case for developers as well.
On the top of that, we also have plugins that do the same or similar job.
This ticket was mentioned in PR #13681 on WordPress/wordpress-develop by @fushar.
8 weeks ago
#2
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/66157
Summary
As discussed in the ticket, the top-right side of the admin bar can be crowded with plugin nodes. This PR attempts to free up some horizontal space by relocating the "Howdy," greeting into the user dropdown.
Please check the linked Trac ticket above for more rationale behind this change.
Display name is username:
| Before | After |
| | |
Display name is different from username:
| Before | After |
| | |
Testing
- Log in and view any admin or front-end page.
- Verify that the top-right of the admin bar shows just the display name and avatar.
- Hover to open the user dropdown, and confirm it shows "Howdy, {name}" beside the large avatar.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Opus 5.5
Used for: Code generation. Verified and tested by me.
#3
@
8 weeks ago
- Keywords needs-design-feedback added
Thank you for the ticket and the patch. The problem this addresses is real, and freeing ~50 px on the right side is a meaningful improvement.
One concern still remains is "Howdy" is a greeting, and a greeting placed behind a hover/click barrier is no longer functioning as a greeting. A greeting by definition lands the moment you arrive and it should be ambient and immediate, not discoverable. If a user has to open a panel to read "Howdy, Alex," the word "Howdy" has lost its semantic purpose. What is left is just the name, which is already shown in the panel by the existing display-name span.
This isn't a reason to block the ticket, the goal (more space, same information architecture) is correct. But it does suggest the cleanest solution is:
Drop "Howdy, " from the bar trigger and show only the display name and avatar.
Leave the dropdown as-is since it already shows the name, username, large avatar, and Edit Profile link.
Moving the sentence into the panel doesn't actually preserve the greeting, it buries it.
This however, needs a lot of design input from the design folks.
#4
@
7 weeks ago
I support this for all the same reasons, it's freeing up valuable space, it's likely even more in other languages. Moving the greeting inside the menu keeps the character and adds to its impact. 👍 👍
#5
@
7 weeks ago
- Milestone Awaiting Review → 7.2
Adding this to the WP 7.2 milestone, as we're iterating more on toolbar/omnibar items.
This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.
7 weeks ago
#7
@
7 weeks ago
- Focuses accessibility removed
The accessibility team has no objections to this. I'm going to remove the accessibility focus, as this is essentially a text-only change and there's no reason for us to check up on it again.
But thanks for compromising against the icon-only option, which was definitely going to cause problems.
@fushar commented on PR #13681:
6 weeks ago
#9
(Sorry if you received duplicated comments; I think GitHub is buggy, somehow it won't show my latest comments here? 🤔)
@tyxla commented on PR #13681:
6 weeks ago
#10
No further feedback from my end. Thank you for your perseverance, @fushar and for going above and beyond to keep the change contained!
Would appreciate another 👁️ from @mcsf before we 🚢 it.
@mcsf commented on PR #13681:
5 weeks ago
#11
I missed this ping last week. LGTM!
(Also, I recommend marking GitHub review threads as _Resolved_ so that it's easier for reviewers to catch up.)
#13
@
5 weeks ago
- Keywords needs-dev-note added; needs-design-feedback removed
(The dev note probably could be part of the miscellaneous changes note.)
#14
@
3 weeks ago
For the dev note, we can link to this comment.
UI changes
| Before | After |
|---|---|
| | |
| | |
Diff of the my-account node markup
-
7.
old new 1 1 <li id='wp-admin-bar-my-account' …> 2 2 <a class='ab-item' …> 3 Howdy, <span class="display-name">John Doe</span>3 <span class="display-name user-display-name">John Doe</span> 4 4 <img …> 5 5 </a> 6 6 <div class="ab-sub-wrapper"> 7 <ul role='menu' aria-label=' Howdy,John Doe' id='wp-admin-bar-user-actions' …>7 <ul role='menu' aria-label='John Doe' id='wp-admin-bar-user-actions' …> 8 8 <li id='wp-admin-bar-user-info' …> 9 9 <a class='ab-item' …> 10 10 <img …> 11 <span class='display-name '>John Doe</span>11 <span class='display-name howdy'>Howdy, <span class='user-display-name'>John Doe</span></span> 12 12 <span class='username'>johndoe</span> 13 13 <span class='display-name edit-profile'>Edit Profile</span> 14 14 </a> 15 15 </li> 16 16 … 17 17 </ul> 18 18 </div> 19 19 </li>
When the display name is the same as the username, the username element was not rendered before:
-
7.
old new 1 1 … 2 <span class='username' hidden>johndoe</span> 2 3 …

Toolbar