Add space-around and space-evenly justification options#71129
Add space-around and space-evenly justification options#71129Sukhendu2002 wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Nice PR, this seems valid to me, and I can potentially help with some icons. Before we go about that, I'd love broader input, @WordPress/gutenberg-design what do you think about these options? |
|
I’m echoing @jasmussen, @Sukhendu2002; for me, this is quite valid. However, within the themesdesign channel, we concluded that while |
|
I think |
Same here. I think the only real concern I'd have is how dense the justification controls might feel, but adding one more sounds reasonable to me. If adding it to the flex layout, comparable changes will also need to be added to some PHP files for layout and navigation, I believe: E.g: gutenberg/packages/block-library/src/navigation/index.php Lines 562 to 567 in a1b9f58 And: gutenberg/lib/block-supports/layout.php Lines 421 to 427 in d398d64 |



What?
Closes: #42536
This PR adds support for
space-aroundandspace-evenlyCSS flexbox justify-content values to the Buttons block.Why?
Currently, the Buttons block only supports basic justification options (left, center, right, space-between). Adding
space-aroundandspace-evenlygives users more precise control over button spacing and alignment, especially useful for creating balanced layouts with multiple buttons.Testing Instructions
Screenshots or screencast