Make WordPress Core

Opened 3 weeks ago

Last modified 2 weeks ago

#62991 assigned enhancement

Issue: Non-Clickable Area in Admin Profile Dropdown

Reported by: r0nak's profile r0nak Owned by: adamsilverstein's profile adamsilverstein
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Toolbar Keywords: good-first-bug 2nd-opinion has-patch needs-design-feedback
Focuses: css, administration Cc:

Description

When hovering over the far-right section of the admin profile dropdown in WordPress, a portion of the area is not clickable. This issue affects user interaction, as clicking on certain parts of the dropdown does not register any action.

Steps to Reproduce:
Log in to the WordPress dashboard.
Hover over the top-right "Howdy, Admin" section to reveal the dropdown.
Move the cursor towards the far-right side of the dropdown.
Attempt to click within the red-marked area (as shown in the attached screenshot).

Expected Behavior:
The entire dropdown area should be clickable without any unresponsive sections.

Actual Behavior:
A portion of the dropdown on the far-right is unclickable, causing usability issues.

Additional Notes:
This issue might be due to improper CSS handling, possibly an unintended margin or padding.
A potential fix could involve checking the CSS rules for .ab-sub-wrapper or inspecting any overflow properties affecting the dropdown.

Attachments (5)

Screenshot_28.png (5.4 KB) - added by r0nak 3 weeks ago.
long-display-name-without-right-margin.png (16.0 KB) - added by sabernhardt 3 weeks ago.
if the right margin is removed, a long display name would still have some padding on the link (shown with avatar, on large screen)
long-name-no-avatar-no-right-margin.png (6.6 KB) - added by sabernhardt 3 weeks ago.
without the avatar, a long display name is so wide in the top level that the list item has plenty of space on the right even without the right margin
long-name-avatar-mobile.png (7.0 KB) - added by sabernhardt 3 weeks ago.
on smaller screens, with avatars enabled, the link hides the avatar and has 16px padding on left and right without any margin
long-name-no-avatar-no-right-margin-mobile.png (6.0 KB) - added by sabernhardt 3 weeks ago.
when avatars are not enabled, removing the right margin would leave the left margin on smaller screens, plus 16px padding on both sides

Download all attachments as: .zip

Change History (12)

@r0nak
3 weeks ago

#1 @mukesh27
3 weeks ago

  • Keywords good-first-bug added
  • Milestone changed from Awaiting Review to 6.8

Nice catch @r0nak

I also reproduce that issue in WP admin. It needs to CSS adjustment to fix the issue mark as good-first-bug so new contributor can work on it.

Move it to 6.8 for visibility.

Additional props to @pooja-n @jbanas @rinkalpagdar

#2 @mukesh27
3 weeks ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned

#3 @audrasjb
3 weeks ago

  • Keywords 2nd-opinion added

I'm not sure I understand the issue :)
The left margin (on the left of the gravatar) is also not clickable, and both sounds relevant to me.
Pinging @karmatosed for a second opinion.

This ticket was mentioned in PR #8363 on WordPress/wordpress-develop by @rinkalpagdar.


3 weeks ago
#4

  • Keywords has-patch added; needs-patch removed

Fixes #62991

Removes the right margin from the admin profile dropdown to make area clickable.

@sabernhardt
3 weeks ago

if the right margin is removed, a long display name would still have some padding on the link (shown with avatar, on large screen)

@sabernhardt
3 weeks ago

without the avatar, a long display name is so wide in the top level that the list item has plenty of space on the right even without the right margin

@sabernhardt
3 weeks ago

on smaller screens, with avatars enabled, the link hides the avatar and has 16px padding on left and right without any margin

@sabernhardt
3 weeks ago

when avatars are not enabled, removing the right margin would leave the left margin on smaller screens, plus 16px padding on both sides

#5 @sabernhardt
3 weeks ago

  • Keywords needs-design-feedback added
  • Type changed from defect (bug) to enhancement

The list item margins were added in r18776 and r19276. Then r26134 set the margins to 0 on smaller screens when the avatar is enabled.

If this removes the right margin, the profile link still would not be clickable for the full width, but I think an unclickable area on the left is fine. I tested with a very long display name, and I am not concerned about how it can look a little imbalanced in that situation. The link has padding of 10 pixels (or 16 on smaller screens), so the text should not touch the edge. Besides, keeping the display name shorter would help to avoid crowding the top-level links.


Note: I would not recommend trying to make the link cover the full width (in Core). Screenshot_28 shows that the Log Out link can appear slightly above the bottom of the avatar image when the display name matches the username. Even the space immediately below the text is unclickable in that case.

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


2 weeks ago

#7 @audrasjb
2 weeks ago

  • Milestone changed from 6.8 to 6.9

As per today's bug scrub: It appears this ticket still needs some work/discussion. As 6.8 beta 1 is very close, I'm moving it to 6.9. Feel free to move it back to 6.8 if it can be committed by Monday.

Note: See TracTickets for help on using tickets.