Cannot align inner blocks in flex layout when allowSwitching is set to true #67016
Closed
3 of 6 tasks
Labels
[Feature] Layout
Layout block support, its UI controls, and style output.
[Type] Bug
An existing feature does not function as intended
Description
When a block has layout support and the
allowSwitching
subproperty is set totrue
, the vertical alignment setting should be displayed in the block toolbar when the layout is set to flex. The alignment setting is not shown unless allowSwitching is set to false (the default) and flex is the default layout type.Step-by-step reproduction instructions
Create a block with layout support and
allowSwitching
set totrue
Screenshots, screen recording, code snippet
This is the code that prevents the alignment button from being added to the block toolbar when
allowSwitching
is set totrue
:gutenberg/packages/block-editor/src/layouts/flex.js
Lines 97 to 99 in e7f0dc5
Environment info
WordPress 6.7, Gutenberg plugin not active
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: