Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Bug: gradient presets shows linear input selections when radial is selected #903

Closed
kebbet opened this issue Nov 30, 2020 · 0 comments · Fixed by #904
Closed

Bug: gradient presets shows linear input selections when radial is selected #903

kebbet opened this issue Nov 30, 2020 · 0 comments · Fixed by #904
Assignees
Labels
[Type] Bug Something isn't working

Comments

@kebbet
Copy link

kebbet commented Nov 30, 2020

Describe the bug
When using a group block and a paragraph inside I stumbled upon a bug in the ”Background Color”-section in the ”Color Settings”-panel in the editor. When selecting a gradient preset, I can select Radial in the dropdown menu. When doing so the input fields for linear manipulation is still visible, even though they should be hidden. (Compare to other default Twenty-themes.) When changing the values in the input-fields, the block crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new post
  2. Add a group block
  3. Add a paragraph inside the group block, add dummy text.
  4. Select group block and open the Block settings in the right sidebar.
  5. Open panel ”Color settings”
  6. Select ”Gradient” for background color.
  7. Select a Gradient-preset
  8. Change Type to ”Radial”
  9. Change the value 160 to 120 or any other number
  10. Block crashes. ”This block has encountered an error and cannot be previewed.”

Expected behavior
The input fields from Linear-gradient should be hidden when selecting Radial.

Screenshots
image
image

Editor version (please complete the following information):

  • WordPress version: 5.6 RC1
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? default
  • If the Gutenberg plugin is installed, which version is it? [e.g., 8.9]

Desktop (please complete the following information):

  • OS: MacOS 10.14.6
  • Browser: Firefox
  • Version 81.0.2

Additional context
Add any other context about the problem here.

@ryelle ryelle added the [Type] Bug Something isn't working label Nov 30, 2020
@ryelle ryelle self-assigned this Nov 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants