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

Product Editor: Block switcher toolbar icon is present for blocks using toolbar, with Gutenberg 18.1 #45908

Open
mattsherman opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels
focus: new product ux revamped product management experience team: Mothra type: bug The issue is a confirmed bug.

Comments

@mattsherman
Copy link
Contributor

Issue Description:

With Gutenberg 18.1 (or trunk), a change was made in WordPress/gutenberg#60010 that causes the block switcher toolbar icon to be present for blocks using the toolbar (such as summary and description), as well as a hover outline.

Gutenberg 18.1

Summary:
Screenshot 2024-03-25 at 14 37 05

Descirption:
Screenshot 2024-03-25 at 14 37 38

Gutenberg 18 or older

Summary:
Screenshot 2024-03-25 at 14 34 29

Description:
Screenshot 2024-03-25 at 14 34 52

Technical Considerations

We could consider introducing a change upstream in Gutenberg to force the block switcher to never appear. Whether that would be welcomed is unknown. This certainly is yet another example of how assumptions on what a "block editor" is can make their way into packages such as @wordpress/block-editor. Or, perhaps we are making assumptions on what a "block editor" is, and we really shouldn't be using @wordpress/block-editor at all.

Another approach, which would be rather fragile and prone to future breakage, could be to use CSS to target and hide the block switcher toolbar icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: new product ux revamped product management experience team: Mothra type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants