Make WordPress Core

Opened 7 weeks ago

Last modified 6 weeks ago

#66013 new defect (bug)

Admin bar submenu arrows are misaligned on small-screen devices.

Reported by: r1k0 Owned by:
Priority: normal Milestone: 7.2
Component: Toolbar Version: 5.2
Severity: normal Keywords: has-test-info has-screenshots has-patch
Cc: Focuses: css

Description

Bug Report

Description

On small-screen devices (<782px), the submenu arrows aren't vertically center-aligned with the text next to them.

Environment

  • WordPress: 7.2-alpha-63166-src
  • Subdirectory: Yes
  • PHP: 8.3.33
  • Server: nginx/1.31.4
  • Database: mysqli (Server: 9.7.2 / Client: mysqlnd 8.3.33)
  • Browser: Chrome 151.0.0.0 (Mobile)
  • OS: Android
  • Theme: Twenty Twenty-Five 1.5
  • MU Plugins: None activated
  • Plugins:
    • BuddyPress 14.5.2
    • Test Reports 1.3.1

Steps to Reproduce

  1. You could use a plugin that adds an admin bar item that has a submenu (child item & grandchild item) or use a multisite(that is what I am using).
  2. On the dashboard, hover over the My Sites menu item.
  3. Do the same thing for the admin profile picture on the right side; hover over it (ensure you have BuddyPress for this).
  4. Observe the position of the submenu arrows relative to the text next to them.
  5. ๐Ÿž Bug occurs.

Expected Results

  1. โœ… The arrows should be vertically center-aligned relative to the text next to them.

Actual Results

  1. โŒ The arrows are vertically positioned slightly above the text next to them.

Additional Notes

  • For the My Sites arrows, as far as I can tell, they have always been like that.
  • But for the mispositioning of the arrows in the admin profile picture secondary menu, this is the result of a regression in 44793. This happened when the wp-admin-bar-arrow class was added.

Screenshots/Screencast with results

  • Screenshot

https://i.ibb.co/j9T9KNht/Screenshot-2026-09-01-054627.png

Change History (7)

This ticket was mentioned in โ€‹PR #13347 on โ€‹WordPress/wordpress-develop by โ€‹@r1k0.


7 weeks ago
#1

  • Keywords has-patch added

Reposition the submenu arrows for smaller screen devices.

Trac ticket: 66013
## Use of AI Tools
N/A

โ€‹@r1k0 commented on โ€‹PR #13347:


7 weeks ago
#2

Before:
https://github.com/user-attachments/assets/0fd8fdaf-3399-4667-9bef-7974694c2a82

After:
https://github.com/user-attachments/assets/602f43d6-930c-4463-bd14-30df3e524f6a

#3 @sabernhardt
7 weeks ago

  • Milestone Awaiting Review โ†’ 7.2
  • Version trunk โ†’ 5.2

โ€‹@audrasjb commented on โ€‹PR #13347:


7 weeks ago
#4

Thanks for the PR!
Looks almost good to me (see @sabernhardt 's comment above)โ€ฆ but don't you think the arrow is still a bit vertically misaligned?
https://github.com/user-attachments/assets/3ee1656a-3d80-4186-956d-cd505f6f870f

โ€‹@r1k0 commented on โ€‹PR #13347:


7 weeks ago
#5

Thank you, @sabernhardt & @audrasjb, for the reviews.
Fixing the specificity.
Lemmi, have another look at the alignment.

โ€‹@r1k0 commented on โ€‹PR #13347:


6 weeks ago
#6

@audrasjb, yes, it might be slightly misaligned by 1px.

I used the horizontal stroke of the letter "A" to center the arrow. I have made an update; take a look and let me know what you think.

https://github.com/user-attachments/assets/1add7c74-0ba2-40a6-b399-0adb43aa55a0

โ€‹@r1k0 commented on โ€‹PR #13347:


6 weeks ago
#7

Updated with suggested changes

Note: See TracTickets for help on using tickets.