Skip to content

Commit eb1051c

Browse files
authored
Merge pull request #5 from pixelalbatross/feature/update-block-supports
2 parents 8b81980 + de9aa80 commit eb1051c

File tree

6 files changed

+71
-5
lines changed

6 files changed

+71
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/).
44

5+
## [0.2.0] - 2023-04-17
6+
7+
### Added
8+
9+
- Support to "Margin", "Padding", "Color", and "Align" block controls.
10+
511
## [0.1.1] - 2023-04-15
612

713
### Fixed

accordion-block.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Plugin URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=accordion-block&utm_campaign=plugin-uri
66
* Requires at least: 6.1
77
* Requires PHP: 7.4
8-
* Version: 0.1.1
8+
* Version: 0.2.0
99
* Author: Pixel Albatross
1010
* Author URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=accordion-block&utm_campaign=author-uri
1111
* License: GPL-2.0-or-later

build/accordion-item/block.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,24 @@
2424
},
2525
"supports": {
2626
"html": false,
27-
"reusable": false
27+
"reusable": false,
28+
"className": true,
29+
"color": {
30+
"gradients": true,
31+
"link": true,
32+
"__experimentalDefaultControls": {
33+
"background": true,
34+
"text": true
35+
}
36+
},
37+
"spacing": {
38+
"padding": true,
39+
"margin": [
40+
"top",
41+
"bottom"
42+
],
43+
"blockGap": true
44+
}
2845
},
2946
"example": {
3047
"attributes": {

build/accordion/block.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@
1414
"textdomain": "accordion-block",
1515
"attributes": {},
1616
"supports": {
17-
"html": false
17+
"html": false,
18+
"align": [
19+
"wide",
20+
"full"
21+
],
22+
"className": true,
23+
"spacing": {
24+
"padding": true,
25+
"margin": [
26+
"top",
27+
"bottom"
28+
],
29+
"blockGap": true
30+
}
1831
},
1932
"example": {
2033
"innerBlocks": [

src/accordion-item/block.json

+18-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,24 @@
2424
},
2525
"supports": {
2626
"html": false,
27-
"reusable": false
27+
"reusable": false,
28+
"className": true,
29+
"color": {
30+
"gradients": true,
31+
"link": true,
32+
"__experimentalDefaultControls": {
33+
"background": true,
34+
"text": true
35+
}
36+
},
37+
"spacing": {
38+
"padding": true,
39+
"margin": [
40+
"top",
41+
"bottom"
42+
],
43+
"blockGap": true
44+
}
2845
},
2946
"example": {
3047
"attributes": {

src/accordion/block.json

+14-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@
1414
"textdomain": "accordion-block",
1515
"attributes": {},
1616
"supports": {
17-
"html": false
17+
"html": false,
18+
"align": [
19+
"wide",
20+
"full"
21+
],
22+
"className": true,
23+
"spacing": {
24+
"padding": true,
25+
"margin": [
26+
"top",
27+
"bottom"
28+
],
29+
"blockGap": true
30+
}
1831
},
1932
"example": {
2033
"innerBlocks": [

0 commit comments

Comments
 (0)