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

Editor: Rendering Selection Box when multi-selecting #23290

Open ItsJonQ opened 4 years ago

ItsJonQ commented 4 years ago

I think it would be nice to show a selection box in the editor when switching to "multi-select" mode.

I tinkered with a prototype (Demo'ed in the GIF below)

Screen Capture on 2020-06-18 at 17-59-47

I'm unsure if this UX was discussed in the past (I apologize if it was!)

I was curious if there was interest in pursuing this interaction.

Thank you! 🙏

The branch is try/selection-box is you'd like to give it a shot! https://github.com/WordPress/gutenberg/tree/try/selection-box

MichaelArestad commented 4 years ago

Trying that branch was great. It always felt a little broken trying to select multiple boxes. This feels more responsive and predictable. I almost wonder if the text highlight should go away once the user starts selecting more than one block.

ItsJonQ commented 4 years ago

I almost wonder if the text highlight should go away once the user starts selecting more than one block.

That was my thought as well!! I gave it a shot...

It looks like text selection is a key mechanic that allows for multi-block selection to work. Disabling text selection seems to break it 😅

MichaelArestad commented 4 years ago

It looks like text selection is a key mechanic that allows for multi-block selection to work. Disabling text selection seems to break it

Womp womp. I suppose we can live with it. ;)

ItsJonQ commented 4 years ago

Womp womp. I suppose we can live with it. ;)

For now :P. I would like to improve the text selection part during multi-select drag though. For example, we shouldn't be able to select text from the top toolbar or sidebar either (in multi-select mode)

MichaelArestad commented 4 years ago

For now :P. I would like to improve the text selection part during multi-select drag though. For example, we shouldn't be able to select text from the top toolbar or sidebar either (in multi-select mode)

Right! At least not unintentionally.

ellatrix commented 4 months ago

Related: #41684