Skip to content

Conversation

@levinbaria
Copy link
Contributor

@levinbaria levinbaria commented Sep 22, 2025

What?

Closes #71800

Why?

Adding correct support name gradients in accordion block.json here:

  • Accordion header
  • Accordion Content
  • Accordion Panel
  • Accordion

How?

Correcting the supports from the gradient to gradients will let to add the background color in gradients.

Testing Instructions

  1. Insert an Accordion block.
  2. Try to add background color on accordion header/content/panel or whole accordiion group.
  3. Now it will also let you to add the gradient color for that section.

Testing Instructions for Keyboard

Screenshots or screencast

|Before|After|

Before
before_img

After
after_img

@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: levinbaria <[email protected]>
Co-authored-by: t-hamano <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano
Copy link
Contributor

Thanks for the PR! Could you confirm the following two points?

  • Run npm run docs:build in your local repo. This will update the related document automatically. After that, commit it and push it. This will fix the CI failure.
  • We recommend that you provide detailed sections What, Why, How, Testing Instructions, and Screenshots or screencast. This will help reviewers of this PR know what to look for, and it will also help those seeing this PR for the first time understand what it is about.

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Accordion Affects the Accordion Block labels Sep 22, 2025
@levinbaria
Copy link
Contributor Author

  • I have already added this PR by running the npm run docs:build in my local repo and then added this PR

  • I have update the PRs section with the What, Why, How, Testing Instructions, and Screenshots or screencast.

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@t-hamano t-hamano merged commit 2979993 into WordPress:trunk Sep 22, 2025
119 of 161 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.8 milestone Sep 22, 2025
adamsilverstein pushed a commit to adamsilverstein/gutenberg that referenced this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Accordion Affects the Accordion Block [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accordion Blocks: Gradient Background not working

2 participants