Skip to content

WordPress 7.0: Block Visibiltiy icon not removed from toolbar when a block is shown #77237

@pbiron

Description

@pbiron

Description

Testing with 7.0-RC2, I see that when I hide a block, an icon is added to that block's row in the List View and another icon is added to the toolbar.

When I then show that same block, the icon disappears from the row in the List View and stays in the toolbar.

I find that confusing. I expected it disappear from the toolbar as well.

Step-by-step reproduction instructions

Here's a screenvid showing the steps I did.

blockvisibility-bug.mp4

Screenshots, screen recording, code snippet

No response

Environment info

WP 7.0-RC2, no GB
Chrome 146.0.7680.178
Win 11

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

Metadata

Metadata

Labels

[Feature] Block APIAPI that allows to express the block paradigm.[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progress[Status] In discussionUsed to indicate that an issue is in the process of being discussed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions