WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Zoom Out: Hold to drag and drop nested patterns. #63863

Closed scruffian closed 1 month ago

scruffian commented 3 months ago

What problem does this address?

Following on from https://github.com/WordPress/gutenberg/issues/63862, we want to prioritise patterns as sectioning elements, but we also don't want to totally prevent nested patterns.

What is your proposed solution?

When in zoom out mode, and using drag and drop, if a user holds a pattern over another pattern for X milliseconds, they become able to nest the pattern inside another pattern.

This needs to be done after https://github.com/WordPress/gutenberg/issues/63862

MaggieCabrera commented 3 months ago

Do we need to do this if we said we weren't going to allow drag and drop inside patterns?

scruffian commented 3 months ago

I think it would be a nice improvement to be able to do it after you hold for X seconds, but probably low priority.

richtabor commented 1 month ago

Perhaps in the future we can re-explore this, but currently I think it's fine that you can disengage zoom out now, to add patterns wherever you'd like. And with https://github.com/WordPress/gutenberg/pull/65945, it may be confusing determining the state of editing with this extra hold to drag and drop patterns within UX.