close
Skip to content

When there isn't space on top and below the block, the toolbar overlaps the block #38409

Description

@gigitux

Description

Working on woocommerce/woocommerce-blocks#5581 we noticed a strange behavior about the toolbar position: when there isn't space on top and below the block, the toolbar overlaps the block.

This behavior could generate a not optimal great experience (see image 2 and image 3).

I discovered that this use-case is handled here.

Maybe a related issue is #37076.

Step-by-step reproduction instructions

  1. Be sure that you have activated a block theme.
  2. Go to Appearance > Site Editor > Template Parts > Header.
  3. Click on the main block.
  4. Check the position of the toolbar.

Screenshots, screen recording, code snippet

image
image
image

Environment info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    General InterfaceParts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions