Skip to content

Improve Lock/Unlock Block Feature for Usability and Ensure Proper Functionality #65121

Open
@alexdeborba

Description

Description

The Lock/Unlock Block feature in the block editor seems unintuitive and may not function as expected. From a user perspective, clicking the lock icon should intuitively provide options to unlock the block. However, this is not the case. Instead, users must navigate to the three-dot menu and select the Unlock option, which opens a modal with the settings, requiring multiple clicks to unlock the block.

Additionally, the current locking mechanism does not seem to cover other crucial elements such as Typography, Margins, and other block settings. Even when locked, elements can still be moved, suggesting that the lock feature may not be functioning correctly or that it lacks expected functionality.

Expected Behavior:
Clicking on the Lock icon should directly provide options to unlock the block.
The lock feature should restrict changes to additional elements such as Typography, Margins, etc., and prevent moving elements when locked.

Actual Behavior:
The Lock icon does not provide a direct way to unlock the block; additional clicks are required.
The lock feature does not cover additional settings, and elements can still be moved when locked.

Step-by-step reproduction instructions

  1. Go to the WordPress block editor.
  2. Click on a block and select the Lock icon.
  3. Observe that clicking the lock icon does not provide the option to unlock directly.
  4. Click on the three dots in the block toolbar and select "Unlock."
  5. Notice that this action opens a modal with additional settings.
  6. Attempt to adjust Typography, Margins, or other settings even when the block is locked.

Screenshots, screen recording, code snippet

Screenshot 2024-09-06 at 06-36-04 Edit Page “Arts Cultures Events and Reviews” ‹ Atmostfear Entertainment — WordPress
Screenshot 2024-09-06 at 06-36-20 Edit Page “Arts Cultures Events and Reviews” ‹ Atmostfear Entertainment — WordPress
Screenshot 2024-09-06 at 06-36-40 Edit Page “Arts Cultures Events and Reviews” ‹ Atmostfear Entertainment — WordPress
Screenshot 2024-09-06 at 06-37-09 Edit Page “Arts Cultures Events and Reviews” ‹ Atmostfear Entertainment — WordPress

Environment info

WordPress version: 6.6.1
Gutenberg version: 19.1.0
Active Theme: Aegis 1.0.0-beta.3
Browser(s): Firefox Developer Edition
Device: Desktop

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

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Status] Needs More InfoFollow-up required in order to be actionable.[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[Type] BugAn existing feature does not function as intended[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