Skip to content

Unify drag and drop behavior across Image block and Gallery block #32820

@critterverse

Description

@critterverse

Potential follow-up to #32819

Currently in Gutenberg, you can drag an image on top of an existing Image block, which will upload the new image and replace the current one. The drop zone covers the full area of the block and is indicated by a blue overlay color with a CTA. The drop zone looks exactly the same on the Gallery block but instead of replacing, the new image is added to the gallery.

Issue #32819 proposes making both of these interactions available for the Image block within a single drag motion. Perhaps the same behavior could be extended to the Gallery block:

gallery-add-replace.mp4

This would allow a user to go seamlessly from one image to two images, and from two images to three images, using the exact same interaction pattern. This could be a part of ongoing efforts to unify the Image block and Gallery block more closely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design FeedbackNeeds general design feedback.[Block] GalleryAffects the Gallery Block - used to display groups of images[Feature] Drag and DropDrag and drop functionality when working with blocks[Type] EnhancementA suggestion for improvement.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions