Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ The "Controls ID" entered in this panel must match the "HTML anchor" assigned to

## Changelog

### 0.6.0

* Add toggle group support: when toggle blocks are inside a container with the `toggle-block-group` class, activating one toggle automatically closes others in the group.
* Add a "Default toggle" option to mark which toggle should be active by default in a group.
* Extend block supports to match paragraph and heading blocks: add font family, font style, font weight, letter spacing, text decoration, text transform, writing mode, border, and link color support.
* Only render `aria-label` when screen reader text is provided, allowing the button text to serve as the accessible name by default.
* Use `aria-expanded` instead of both `aria-pressed` and `aria-expanded` for toggle state.
* Update to latest dependencies, build process, and code standards.

### 0.5.0

* Wrap button text in a `<span>` element to help with styling.
Expand Down
24 changes: 21 additions & 3 deletions build/toggle-block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"category": "widgets",
"icon": "location",
"description": "Toggle button to show and hide another block.",
"version": "0.5.0",
"version": "0.6.0",
"textdomain": "toggle-block",
"editorScript": "file:index.js",
"viewScript": [
Expand All @@ -29,6 +29,10 @@
"type": "string",
"default": ""
},
"defaultToggle": {
"type": "boolean",
"default": false
},
"labelText": {
"type": "string",
"default": ""
Expand All @@ -42,7 +46,14 @@
"background": true,
"enableContrastChecker": true,
"text": true,
"gradients": true
"gradients": true,
"link": true
},
"__experimentalBorder": {
"color": true,
"radius": true,
"style": true,
"width": true
},
"defaultStylePicker": true,
"dimensions": {
Expand All @@ -58,7 +69,14 @@
},
"typography": {
"fontSize": true,
"lineHeight": true
"lineHeight": true,
"__experimentalFontFamily": true,
"__experimentalFontStyle": true,
"__experimentalFontWeight": true,
"__experimentalLetterSpacing": true,
"__experimentalTextDecoration": true,
"__experimentalTextTransform": true,
"__experimentalWritingMode": true
}
}
}
2 changes: 1 addition & 1 deletion build/toggle-block/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-hooks', 'wp-i18n'), 'version' => '61ac43517d05434ffa10');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-hooks', 'wp-i18n'), 'version' => 'a5c3c55e8feccd19dc5a');
2 changes: 1 addition & 1 deletion build/toggle-block/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/toggle-block/view.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'bcc5d43248b94f5647f5');
<?php return array('dependencies' => array(), 'version' => 'b3c2eb6fcd265848e8b1');
2 changes: 1 addition & 1 deletion build/toggle-block/view.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "happyprime/toggle-block",
"description": "Add a toggle to show and hide another block.",
"version": "0.5.0",
"version": "0.6.0",
"type": "wordpress-plugin",
"minimum-stability": "stable",
"license": "GPLv2-or-later",
Expand Down
Loading
Loading