You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataViews: Moving the cursor out of the window shifts the popover layout and hides the toggle icon in the list view. #69570
When the cursor moves out of the browser window after opening the Action Menu in DataViews (List Layout), the Menu.Popover remains open, but the trigger button disappears, and the popover unexpectedly shifts to the right.
This bug can also be reproduced on WordPress 6.7.x.
This bug occurs in both Pages (Site Editor) and Templates (Site Editor) since both utilize DataViews' List Layout.
Expected Behavior:
The Menu should maintain consistent behavior when the cursor moves in and out of the window. Specifically:
The Trigger should remain visible when the Menu.Popover is expanded.
There should be no unexpected layout shifts.
This issue is particularly noticeable for users with dual/multiple displays.
Step-by-step reproduction instructions
Navigate to Appearance -> Editor -> Pages.
Make sure that the data is displayed in List Layout.
Click the Actions button and open the menu.
Move the cursor out of the window or to a different display.
Confirm the disappearance of icons and layout shift of the menu.
My first question is why the List layout shows the primary ellipsis button only when the row is hovered. According to this comment, this UI doesn't seem to have any a11y issues, but I'd like to check first to see if that's true, just to be sure.
If the current UI is not recommended from an a11y perspective, we should show the primary ellipsis button, which means that the issue reported here no longer occurs.
Thanks, @t-hamano! I'd disagree with the result of @oandregal's logic in that comment. While it's true that one of the reasons for showing the ellipsis button in the table context is that a table cell shouldn't appear empty, that's certainly not the only reason. It's generally better for controls to be visible. I know that the design team has generally protested against visible controls, but for accessibility it's far better to be able to see them persistently.
I can see an argument against showing a whole panel of controls; but the primary ellipsis should be visible.
From an accessibility perspective, I agree with @joedolson. As mentioned, displaying only the primary ellipsis is preferable to showing the entire panel along with it. This approach would also resolve the reported bug.
@t-hamano, would it be okay if I create a PR to implement this and link it to the same issue for documentation purposes? I'll update the issue metadata accordingly.
would it be okay if I create a PR to implement this and link it to the same issue for documentation purposes? I'll update the issue metadata accordingly.
Yes, please 👍 I too prefer the primary ellipsis button to be consistently visible by default.
Activity
t-hamano commentedon Apr 3, 2025
Thanks for the report.
My first question is why the List layout shows the primary ellipsis button only when the row is hovered. According to this comment, this UI doesn't seem to have any a11y issues, but I'd like to check first to see if that's true, just to be sure.
If the current UI is not recommended from an a11y perspective, we should show the primary ellipsis button, which means that the issue reported here no longer occurs.
cc @joedolson @alexstine @afercia
joedolson commentedon Apr 3, 2025
Thanks, @t-hamano! I'd disagree with the result of @oandregal's logic in that comment. While it's true that one of the reasons for showing the ellipsis button in the table context is that a table cell shouldn't appear empty, that's certainly not the only reason. It's generally better for controls to be visible. I know that the design team has generally protested against visible controls, but for accessibility it's far better to be able to see them persistently.
I can see an argument against showing a whole panel of controls; but the primary ellipsis should be visible.
yogeshbhutkar commentedon Apr 4, 2025
From an accessibility perspective, I agree with @joedolson. As mentioned, displaying only the primary ellipsis is preferable to showing the entire panel along with it. This approach would also resolve the reported bug.
@t-hamano, would it be okay if I create a PR to implement this and link it to the same issue for documentation purposes? I'll update the issue metadata accordingly.
t-hamano commentedon Apr 5, 2025
@joedolson Thanks for the feedback!
@yogeshbhutkar
Yes, please 👍 I too prefer the primary ellipsis button to be consistently visible by default.