Skip to content

Commit 579bce8

Browse files
Accordion Panel: Add background image, size, and gradient support (#83201)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
1 parent 2ac769c commit 579bce8

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎docs/reference-guides/core-blocks/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Contains the hidden or revealed content beneath the heading.
5656
- **Name:** [core/accordion-panel](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-accordion-panel/)
5757
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
5858
- **Parent:** core/accordion-item
59-
- **Supports:** allowedBlocks, color (background, gradients, text), contentRole, interactivity, layout (~~allowEditing~~), shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~html~~, ~~lock~~, ~~visibility~~
59+
- **Supports:** allowedBlocks, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), contentRole, interactivity, layout (~~allowEditing~~), shadow, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~html~~, ~~lock~~, ~~visibility~~
6060
- **Attributes:** templateLock
6161

6262
## Archives

‎packages/block-library/src/accordion-panel/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ _Defined via the [`attributes`](https://developer.wordpress.org/block-editor/ref
2626
_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._
2727

2828
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
29+
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
30+
- `backgroundImage`: `true`
31+
- `backgroundSize`: `true`
32+
- `gradient`: `true`
2933
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
3034
- [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-background): `true`
3135
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`

‎packages/block-library/src/accordion-panel/block.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"supports": {
1111
"__experimentalOnEnter": true,
1212
"html": false,
13+
"background": {
14+
"backgroundImage": true,
15+
"backgroundSize": true,
16+
"gradient": true
17+
},
1318
"color": {
1419
"background": true,
1520
"gradients": true

0 commit comments

Comments
 (0)