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

Setting 'Border' styles separately #43471

Closed
henriqueiamarino opened this issue Aug 22, 2022 · 2 comments
Closed

Setting 'Border' styles separately #43471

henriqueiamarino opened this issue Aug 22, 2022 · 2 comments
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Enhancement A suggestion for improvement.

Comments

@henriqueiamarino
Copy link

What problem does this address?

I'm always frustrated when I try to set border styles as design elements. To design strokes sitting next to other components I end up creating columns or rows and use images to emulate the image below. As we’re currently developing a theme where this tool would be essential to achieve the design I believe Gutenberg could benefit on a simple solution here.

heading-element

What is your proposed solution?

What If we could expand our 'Border' panel and allow styling to be added separately? Webflow site builder has implemented this idea and I believe the same approach would fit perfectly into our settings arrangement. Four different border settings allowed.

webflow-solution

@beafialho beafialho added [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Enhancement A suggestion for improvement. labels Aug 22, 2022
@t-hamano
Copy link
Contributor

In the latest Gutenberg, #37770 introduces a new BorderBoxControl component in block support that allows for individual adjustments.
Paragraph and heading blocks are not supported, but wrapping in group blocks should work.
Is this your solution?

aff2e061ec2aad73e9a5ad5231dd7073.mp4

@henriqueiamarino
Copy link
Author

Thanks @t-hamano that indeed solves the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants