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

Gradient control doesn't work properly #39104

Open
maddisondesigns opened this issue Feb 26, 2022 · 3 comments
Open

Gradient control doesn't work properly #39104

maddisondesigns opened this issue Feb 26, 2022 · 3 comments
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended

Comments

@maddisondesigns
Copy link

Description

The Gradient control is horrible to use, and just doesn't work properly. Clicking on the small dots to try and select a new colour, keeps moving the dot to a new location, rather than showing the colour selector. When you do eventually get the color selector to show, sometimes it just changes the colour at that point, other times it changes the colour of the whole gradient. When you try to adjust the gradient angle using the small circular angle wheel, the popup constantly closes, forcing you to reopen it again.

Vid: https://share.getcloudapp.com/KouYgZ6G

Step-by-step reproduction instructions

  • Add a Group block and select it
  • Open the Color Panel in the settings sidebar
  • Click on Background to display the color popup
  • Select the Gradient tab to display the Gradient color picker
  • Try to click on the small color selector dots and watch them move instead of showing the color picker
  • When you finally manage to display the color picker, select a new color and see if just that point changes color or whether the whole gradient changes color
  • Try to change the angle of the Gradient using the using the small circular angle wheel

Screenshots, screen recording, code snippet

No response

Environment info

WP 5.9.1
Twenty Twenty One
Firefox 97.0.1
macOS 12.2.1
No Gutenberg plugin, core only

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

@annezazu annezazu added [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended labels Feb 28, 2022
@annezazu
Copy link
Contributor

Noting that I can replicate how difficult this is to use. Thank you for opening!

@stokesman
Copy link
Contributor

A couple PRs have landed and they may have resolved all the problems mentioned here:

A build of the latter (that also includes the former) can be tested at http://gutenberg.run/41492 if you'd like to confirm @maddisondesigns. If you do try that link, a Cover block is the only one I found that allows gradients.

@maddisondesigns
Copy link
Author

@stokesman That new control seems to work a lot better and is more reliable. The angle control also seems to be fixed and doesn't constantly close 👍

One thing I would suggest though is making the position of the colour picker consistent.
When you select a custom colour when using a solid colour, the colour picker appears to the left of the control.

screenshot_937

When you select a custom colour when using the gradient control, the colour picker appears over the top of the control.

screenshot_935

They should both appear in the same position for consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants