Skip to content

Block mover drag handle cursor style should be grab #50789

@afercia

Description

@afercia

Description

When the editor is in 'Select' mode, the cursor style of the block mover (actually it's the 'block selection button') drag handle is grab:

Screenshot 2023-05-19 at 13 01 34

However, when the editor is in 'Edit' mode, the cursor style is pointer:

Screenshot 2023-05-19 at 13 02 11

The pointer style isn't appropriate here, as this control can't be clicked.

I think (not 100% sure) this regressed in #40379

The cursor style in previous WP version 5.7.:

wp 5 7

Step-by-step reproduction instructions

  • Go to the Post or Site editor.
  • Make sure the Editor is in 'Edit' mode.
  • Select a block: the block toolbar appears.
  • Hover the drag handle.
  • Observe the cursor style is pointer.
  • Switch the editor to 'Select' mode.
  • The block toolbar switches to the 'selection button' (that is the black sort-of-toolbar).
  • Hover the drag handle.
  • Observe the cursor style is drag.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Package] Block editor/packages/block-editor[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

    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