Skip to content

Commit f70003a

Browse files
mattwiebepfefferleobenland
authored
Follow Me: add a button-only mode (#1133)
* Follow Me: add a button-only mode Also make button text and button size configurable * proper naming of sidebar panel * changelog * code style * Add changelog item * Update build after merge * Remove changelog changes after merge * Only add left margin to the button when there's profile content. --------- Co-authored-by: Matthias Pfefferle <[email protected]> Co-authored-by: Konstantin Obenland <[email protected]>
1 parent ec76c40 commit f70003a

File tree

12 files changed

+247
-55
lines changed

12 files changed

+247
-55
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: changed
3+
4+
Configure the "Follow Me" button to have a button-only mode.

build/follow-me/block.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@
3636
"selectedUser": {
3737
"type": "string",
3838
"default": "site"
39+
},
40+
"buttonOnly": {
41+
"type": "boolean",
42+
"default": false
43+
},
44+
"buttonText": {
45+
"type": "string",
46+
"default": "Follow"
47+
},
48+
"buttonSize": {
49+
"type": "string",
50+
"default": "default",
51+
"enum": [
52+
"small",
53+
"default",
54+
"compact"
55+
]
3956
}
4057
},
4158
"usesContext": [

build/follow-me/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '37fe71b93359e27fe42a');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9c01ec8a9c087cdaf61a');

build/follow-me/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/follow-me/style-view-rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/follow-me/style-view.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/follow-me/view.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '91c0e513a192990d783c');
1+
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'b809370b8ebe861e6d57');

0 commit comments

Comments
 (0)