Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Rendering Selection Box when multi-selecting #23290

Open
ItsJonQ opened this issue Jun 18, 2020 · 6 comments
Open

Editor: Rendering Selection Box when multi-selecting #23290

ItsJonQ opened this issue Jun 18, 2020 · 6 comments
Assignees
Labels
[Feature] Block Multi Selection The ability to select and manipulate multiple blocks [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Feature] UI Components Impacts or related to the UI component system [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@ItsJonQ
Copy link

ItsJonQ commented Jun 18, 2020

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

  • Run npm run dev
  • That should be it!
@ItsJonQ ItsJonQ added [Feature] UI Components Impacts or related to the UI component system [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi labels Jun 18, 2020
@ItsJonQ ItsJonQ self-assigned this Jun 18, 2020
@MichaelArestad
Copy link
Contributor

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
Copy link
Author

ItsJonQ commented Jun 19, 2020

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
Copy link
Contributor

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
Copy link
Author

ItsJonQ commented Jun 19, 2020

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
Copy link
Contributor

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.

@mtias mtias added Needs Design Needs design efforts. [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Aug 2, 2023
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 8, 2023
@ellatrix ellatrix added the [Feature] Block Multi Selection The ability to select and manipulate multiple blocks label Jul 12, 2024
@ellatrix
Copy link
Member

Related: #41684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block Multi Selection The ability to select and manipulate multiple blocks [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Feature] UI Components Impacts or related to the UI component system [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants