Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom Out Feature inserters provide poor UX for consecutive lower level blocks #65822

Open
2 tasks done
asad-dc opened this issue Oct 2, 2024 · 9 comments
Open
2 tasks done
Labels
[Feature] Zoom Out Needs Design Needs design efforts. [Type] Bug An existing feature does not function as intended

Comments

@asad-dc
Copy link

asad-dc commented Oct 2, 2024

Description

When I click on Zoom Out Button its show buttons at start to add Pattern as able to see in given Sreenshot
CleanShot 2024-10-02 at 16 04 53
The next thing is there is no space between 2 buttons

Step-by-step reproduction instructions

  1. Add New Post
  2. Add any block click on zoom out you are able to see 2 buttons for add patterens

Screenshots, screen recording, code snippet

CleanShot 2024-10-02 at 16 04 53

Environment info

Wordpress 6.7 Beta

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
@asad-dc asad-dc added the [Type] Bug An existing feature does not function as intended label Oct 2, 2024
@colorful-tones colorful-tones changed the title Zoom Out Feature Show Mutiple Add Pattern Buttons Zoom Out Feature Show Multiple Add Pattern Buttons Oct 3, 2024
@colorful-tones
Copy link
Member

colorful-tones commented Oct 3, 2024

I verified this behavior.

The UI does seem odd. I'm not sure how to address it. @WordPress/gutenberg-design might have some insight here.

@t-hamano
Copy link
Contributor

t-hamano commented Oct 4, 2024

My understanding is that in zoomed out mode, buttons for inserting a pattern appear above and below the selected block at the root level.

So technically this is correct, but it seems odd to me to have the buttons stuck together.

The zoomed out view is a new feature in WP 6.7, so I'd like to add it to the project board.

@richtabor
Copy link
Member

Related: #65474

@getdave
Copy link
Contributor

getdave commented Oct 7, 2024

Thanks for reporting this and for the resulting discussion.

I don't think that this Issue offers a clear route to "solve" this from a technical perspective.

The problem is that the blocks in question are technically considered "sections" within Zoom Out because they are at the root level of the current editor.

Image

For me this is a Design/UX problem. What do we want to do with the large inserters which work well for Patterns/Groups but provide a poor UX for lower level blocks such as paragraph...etc.

For me, if Zoom Out is designed to help compose larger content Posts/Pages then perhaps we should disable the Zoom Out inserters unless it's between "container" type blocks - e.g:

  • Pattern
  • Group
  • Cover
  • Query

Tagging @WordPress/gutenberg-design here for wider opinions because we should try and offer a solution to this otherwise it's going to get repeatedly flagged as a bug.

@getdave getdave moved this from 📥 Todo to 🗣️ In Discussion / Needs Decision in WordPress 6.7 Editor Tasks Oct 7, 2024
@getdave getdave added the Needs Design Needs design efforts. label Oct 7, 2024
@getdave getdave changed the title Zoom Out Feature Show Multiple Add Pattern Buttons Zoom Out Feature inserters provide poor UX for consecutive lower level blocks Oct 7, 2024
@jasmussen
Copy link
Contributor

For me this falls into the same category as the smarts that are being built into the block toolbar, smarts like that toolbar moving below the block if the block itself is close to the top, or moving below an opened navigation menu to not cover the blocks inside if the parent is selected. Or the sticky behavior where the toolbar sticks with you as you scroll down the page. But if you scroll far enough, the block toolbar disappears, because in that situation, it just isn't useful.

In this sense, the inserters are not useful when they are so close together. Is there a way to simply fade them out when they are too close to each other or even overlap?

@colorful-tones
Copy link
Member

For me this falls into the same category as the smarts that are being built into the block toolbar, smarts like that toolbar moving below the block if the block itself is close to the top, or moving below an opened navigation menu to not cover the blocks inside if the parent is selected. Or the sticky behavior where the toolbar sticks with you as you scroll down the page. But if you scroll far enough, the block toolbar disappears, because in that situation, it just isn't useful.

If anybody has links to open items related to these enhancements, it would be amazing if they linked them here to provide context to the overall discussion.

@jasmussen
Copy link
Contributor

If anybody has links to open items related to these enhancements, it would be amazing if they linked them here to provide context to the overall discussion.

I was a bit short there, sorry! I'm actually referring to shipping features of the product that are already in. Here's a GIF of the features I described:

Image

Let me know if I'm missing nuance!

@ndiego
Copy link
Member

ndiego commented Oct 9, 2024

Given the discussion above and the short time frame till Beta 3, this seems like an issue to tackle post-6.7. Thoughts @richtabor @getdave @jasmussen?

@getdave
Copy link
Contributor

getdave commented Oct 10, 2024

Agreed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Zoom Out Needs Design Needs design efforts. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

7 participants