Open ndiego opened 5 days ago
I’ve tested this issue and can confirm it’s a bug. A gradient background set in Global Styles cannot be overridden with a solid color at the block level.
Could we solve this everywhere instead of for one block? https://github.com/WordPress/gutenberg/issues/47391 https://github.com/WordPress/gutenberg/issues/42105
Could we solve this everywhere instead of for one block? #47391
Thanks for the suggestion @carolinan, I'll try to solve it everywhere and update the PR.
@carolinan, The default gradient override bug has now been fixed for all the blocks in the latest patch of the PR.
Description
If you apply a gradient background to Button blocks in Global Styles → Blocks → Button (or theme.json), users cannot override this gradient background with a solid background color at the block level. They can override it with another gradient background, which makes sense from a technical standpoint but is very unintuitive from a user perspective. You should be able to set the background at the block level, whether you want to apply a gradient or solid color.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.