gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Remove block menu item is unreachable due to positioning off screen and failure to provide scrolling

Open caseymilne opened this issue 5 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Have you tried deactivating all plugins except Gutenberg?

  • [X] I have tested with all plugins deactivated.

Have you tried replicating the bug using a default theme e.g. Twenty Twenty?

  • [X] I have tested with a default theme.

Description

Using Firefox, latest 5.8 WP release Gutenberg's block context menu fails to provide access to the "Remove Block" menu item link. This happens sporadically, as it depends on the position of the block in the viewport. Specifically the list of the context menu items is too long to fit on the page so the link appears off the screen. What should happen when part of the context menu appears off screen is that the menu should provide scrolling. Again this issue occurs sporadically, as sometimes scrolling is provided.

Obviously being unable to review blocks provides an unusually frustrating experience as users must consider new options to remove blocks such as switching the editor into code view in order to manually remove the code for the block. The keyboard shortcut (unrelated issue) also seems to be broken (but this is probably in another ticket).

Step-by-step reproduction instructions

Use Firefox browser. Use a smaller laptop screen such as 14". Use Gutenberg in a post edit, visual mode. Add blocks. Find a block toward the lower part of the screen which causes the context menu to load off screen. Try to scroll to the off screen remove block.

Expected Behavior

Context menu should detect when part of it is appearing off screen and provide scrolling.

Current Behavior

Some context menu items, specifically the remove block menu item appear off screen with no scrolling available making it impossible for the user to reach the remove block item.

Screenshots or screen recording (optional)

No response

Code snippet (optional)

No response

WordPress Information

WP 5.8x

Gutenberg Information

WP 5.8.x

What browsers are you seeing the problem on?

No response

Device Information

Desktop

Operating System Information

Windows 10

caseymilne avatar Aug 05 '21 22:08 caseymilne

Hi @caseymilne -- I just tested this on a 13" laptop screen, with the latest Firefox, and a fresh install of WP & Gutenberg. I wasn't able to reproduce this issue. Depending on context, the menu either loaded a scroll bar, like this:

Screen Shot of Gutenberg menu loading with a scroll bar

or populated above the menu selection icon, like this: Screen shot of Gutenberg menu loading above the selection icon

Would you be able to take some screenshots of the issue, and/or explain if there are particular blocks this is more common with? Or any other pattern we can use to trigger this issue -- that would help move this forward.

Thanks for reporting!

sparklingrobots avatar Aug 10 '21 20:08 sparklingrobots

image

I am facing this issue too. Can't reproduce it reliably. I do see the scroll-bar sometimes. Could it be that third party blocks have more options and that's not being taken into account?

Firefox 91 on Windows 10 with WordPress 5.8.

MaybeThisIsRu avatar Aug 25 '21 10:08 MaybeThisIsRu

I have reproduced this error:

  • macOS Big Sur 11.5.2 13" M1
  • WordPress 5.8 (local installation)
  • Gutenberg (last trunk commit)
  • Firefox 91.0.2 64 bits

I created a new post with two blocks (Twitter and Gallery) and scroll to hide the last menu item of the Gallery block

2021-08-26 11-18-54

In this menu, the "Remove block" item is hidden

2021-08-26 11-42-05

If I scroll up the post a little, the scroll bar appears

2021-08-26 11-20-24

If I continue to scroll a little, the menu changes to the top position, without the scroll bar

2021-08-26 11-21-35

hidding the "Hidding more settings" and "Copy" items

2021-08-26 11-46-19

amieiro avatar Aug 26 '21 09:08 amieiro

I've tried for some time and was not able to reproduce this issue.

youknowriad avatar Dec 01 '25 13:12 youknowriad