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

Color picker: Improve inserting values from clipboard #50502

Open
hanneslsm opened this issue May 10, 2023 · 6 comments
Open

Color picker: Improve inserting values from clipboard #50502

hanneslsm opened this issue May 10, 2023 · 6 comments
Labels
[Feature] Colors Color management [Type] Enhancement A suggestion for improvement.

Comments

@hanneslsm
Copy link

Description

When inserting a custom color there are too many unnecessary steps involved. After opening the color picker inserting from the clipboard should be easier.

Step-by-step reproduction instructions

Let's say I have a custom color I want to transfer to a text Gutenberg.

  1. In my example I copy a color from Figma.
  2. Open up the color panel for the text.
  3. Open up the color picker
  4. Try to paste the color value. Not working.

--

  • When you have the color picker open
  • you have to select the current Hex Value first either with
    • the cursor or
    • keyboard (CMD + A)
  • delete the current value and
  • paste the copied value.
  • You have to do all of these because if you just select the input field and insert the value, it will be appended to the current value

@annezazu Maybe this is an issue for the UX & Polish board? ;)

Screenshots, screen recording, code snippet

Screen.Recording.2023-05-10.at.10.45.24.mp4

Environment info

  • Wordpress 6.2
  • GB 15.7.1

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

@hanneslsm hanneslsm changed the title Color picker: Automatically focus on Hex Value Input Color picker: Improve inserting values from clipboard May 10, 2023
@hanneslsm
Copy link
Author

To add on that, accidentally copied spaces, tabs in front of/and # should be removed automatically.

Screen.Recording.2023-05-10.at.11.09.31.mp4

@hanneslsm
Copy link
Author

And maybe we could even remove the step that the color picker for a custom color must be opened. Why not just CMD+V when the Color Palette Panel is opened?

@annezazu
Copy link
Contributor

Tagging in @WordPress/gutenberg-design for thoughts here! Not adding to the UX & Polish just yet as it's not in an actionable state for developers. Thanks for opening 🥳

@richtabor
Copy link
Member

maybe we could even remove the step that the color picker for a custom color must be opened

Probably, if its a hex value.

@richtabor
Copy link
Member

Why not just CMD+V when the Color Palette Panel is opened?

That could be fun. Not sure technically how plausible this is, but interesting idea.

@hanneslsm
Copy link
Author

hanneslsm commented May 10, 2023

Not adding to the UX & Polish just yet as it's not in an actionable state for developers.

Quick and actionable would be that the input field of the Hex value is selected by default when opening the color picker. This would remove at least one click. Should I create a new issue just for that?

@mrfoxtalbot mrfoxtalbot added [Type] Enhancement A suggestion for improvement. [Feature] Colors Color management labels May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Colors Color management [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants