Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactions Block: add option to customize and / or remove the heading #1096

Open
jeherve opened this issue Dec 18, 2024 · 3 comments
Open

Reactions Block: add option to customize and / or remove the heading #1096

jeherve opened this issue Dec 18, 2024 · 3 comments

Comments

@jeherve
Copy link
Member

jeherve commented Dec 18, 2024

What

It would be nice if we could customize and / or remove the heading of the Reactions block.

On my site, I would like to be able to:

  1. Use the heading level I want
  2. Change the text
  3. Customize the display of the heading (top border, style, ...)
  4. Remove it entirely if necessary
Image

Why

The more customizable the block is, the easier it will be for folks to integrate it on their sites.

How

Would it be possible to auto-insert a core group block instead, and that group block would have a heading block and a Reactions block? This way folks would then be able to customize it to their liking.

@jeherve
Copy link
Member Author

jeherve commented Dec 18, 2024

cc @mattwiebe

@mattwiebe
Copy link
Contributor

Agreed these would be nice! You should be able to edit the text, including an empty string that will remove it

@jeherve
Copy link
Member Author

jeherve commented Dec 19, 2024

If that can help, in Jetpack's Related Posts block we relied on InnerBlocks to allow a heading block before the actual related posts element:
https://github.com/Automattic/jetpack/blob/a9966bf7dd5c6d41b87fa18f4f6be8f02a6e2ef7/projects/plugins/jetpack/extensions/blocks/related-posts/edit.js#L262-L265

Maybe we could do something similar with the Reactions block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants