Skip to content

Commit

Permalink
Merge pull request #5 from pixelalbatross/feature/update-block-supports
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rgiosan authored Apr 17, 2023
2 parents 8b81980 + de9aa80 commit eb1051c
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [0.2.0] - 2023-04-17

### Added

- Support to "Margin", "Padding", "Color", and "Align" block controls.

## [0.1.1] - 2023-04-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion accordion-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=accordion-block&utm_campaign=plugin-uri
* Requires at least: 6.1
* Requires PHP: 7.4
* Version: 0.1.1
* Version: 0.2.0
* Author: Pixel Albatross
* Author URI: https://pixelalbatross.pt/?utm_source=wp-plugins&utm_medium=accordion-block&utm_campaign=author-uri
* License: GPL-2.0-or-later
Expand Down
19 changes: 18 additions & 1 deletion build/accordion-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,24 @@
},
"supports": {
"html": false,
"reusable": false
"reusable": false,
"className": true,
"color": {
"gradients": true,
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"padding": true,
"margin": [
"top",
"bottom"
],
"blockGap": true
}
},
"example": {
"attributes": {
Expand Down
15 changes: 14 additions & 1 deletion build/accordion/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@
"textdomain": "accordion-block",
"attributes": {},
"supports": {
"html": false
"html": false,
"align": [
"wide",
"full"
],
"className": true,
"spacing": {
"padding": true,
"margin": [
"top",
"bottom"
],
"blockGap": true
}
},
"example": {
"innerBlocks": [
Expand Down
19 changes: 18 additions & 1 deletion src/accordion-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,24 @@
},
"supports": {
"html": false,
"reusable": false
"reusable": false,
"className": true,
"color": {
"gradients": true,
"link": true,
"__experimentalDefaultControls": {
"background": true,
"text": true
}
},
"spacing": {
"padding": true,
"margin": [
"top",
"bottom"
],
"blockGap": true
}
},
"example": {
"attributes": {
Expand Down
15 changes: 14 additions & 1 deletion src/accordion/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@
"textdomain": "accordion-block",
"attributes": {},
"supports": {
"html": false
"html": false,
"align": [
"wide",
"full"
],
"className": true,
"spacing": {
"padding": true,
"margin": [
"top",
"bottom"
],
"blockGap": true
}
},
"example": {
"innerBlocks": [
Expand Down

0 comments on commit eb1051c

Please sign in to comment.