Skip to content

List view: empty settings menus for non-editable items instead of a lock icon  #62352

@ramonjd

Description

@ramonjd

Description

Block settings and other actions can be accessed via an ellipsis menu for items in the list view.

When a block is locked there are no actions/settings, however an empty drop down menu still appears (in BlockSettingsMenu).

Previously there was a lock icon. See:

const shouldShowLockIcon = isLocked && ! isContentOnly;

Step-by-step reproduction instructions

  1. Go to any page or post in the post editor
  2. In the Post/Page settings on the right, activate "Show template"
  3. Open the list view and click on the ellipsis menu of non-editable items, e.g., template parts, content or title blocks
  4. Observe that the menu is empty

Screenshots, screen recording, code snippet

2024-06-06.14.22.03.mp4
Screenshot 2024-06-06 at 2 23 16 PM

Environment info

Latest Gutenberg trunk on WP 6.6-beta1-58338

Also on 6.6-beta1-58338 with Gutenberg deactivated

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

Labels

[Feature] List ViewMenu item in the top toolbar to select blocks from a list of links.[Status] In ProgressTracking issues with work in progress[Type] RegressionRelated to a regression in the latest release

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions