Skip to content

DataViews: Moving the cursor out of the window shifts the popover layout and hides the toggle icon in the list view. #69570

Closed

Description

@yogeshbhutkar

Description

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

  1. Navigate to Appearance -> Editor -> Pages.
  2. Make sure that the data is displayed in List Layout.
  3. Click the Actions button and open the menu.
  4. Move the cursor out of the window or to a different display.
  5. Confirm the disappearance of icons and layout shift of the menu.

Screenshots, screen recording, code snippet

Image

Environment info

  • WordPress Version: Trunk
  • Gutenberg Version: 1c698f8
  • OS: macOS Sequoia
  • Browser: Chrome, Firefox, Safari

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Activity

  1. added
    [Type] Bug
    on Mar 14, 2025
  2. added
    [Status] In Progress
    on Mar 14, 2025
  3. t-hamano commented on Apr 3, 2025

    @t-hamano
    Contributor

    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

  4. added
    Needs Accessibility Feedback
    on Apr 3, 2025
  5. joedolson commented on Apr 3, 2025

    @joedolson
    Contributor

    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.

  6. yogeshbhutkar commented on Apr 4, 2025

    @yogeshbhutkar
    ContributorAuthor

    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.

  7. t-hamano commented on Apr 5, 2025

    @t-hamano
    Contributor

    @joedolson Thanks for the feedback!

    @yogeshbhutkar

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Accessibility Feedback[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions