Closed tellthemachines closed 4 days ago
Size Change: +11 B (0%)
Total Size: 1.82 MB
Filename | Size | Change |
---|---|---|
build/block-editor/index.min.js |
255 kB | +11 B (0%) |
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 props-bot
label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
What?
Fixes an issue noticed while reviewing #67022.
The
allowJustification
property of layout support should, per the docs allow disabling justification controls for the block in constrained or flex layouts, but currently flex justification controls are being rendered regardless of that property.This PR updates the controls so they are only output when
allowJustification
istrue
.Testing Instructions
buttons/block.json
update the layout support to:Note that if orientation controls are enabled (which they are by default), the sidebar will look a bit empty:
But that's already the case when justification is enabled and orientation is disabled (which has been a working feature for a while now):