-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as duplicate of#69634
Closed as duplicate of#69634
Copy link
Labels
[Block] ButtonsAffects the Buttons BlockAffects the Buttons Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
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
- Set a gradient background on the Button block in Global Styles and save.
- Open a new post and add the Buttons block, and add a Button.
- Confirm that the Button is displaying the gradient background set in Global Styles.
- Try setting a block-level solid background color. Confirm nothing changes.
- Now add a block-level gradient background color. Confirm that the new gradient is applied.
Screenshots, screen recording, code snippet
Global Styles | Block-level (Solid) | Block-level (Gradient) |
---|---|---|
Environment info
- WordPress 6.7
- With and without Gutenberg
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Block] ButtonsAffects the Buttons BlockAffects the Buttons Block[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended