You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Orientation Support: Not showing consistently across editors in Row block #39647
It's been reported that the orientation settings are not showing consistently. For example using the skatepark theme and adding a row block in the post editor results in orientation settings now showing at all:
Skatepark does not have anything in theme.json to hide these settings.
Step-by-step reproduction instructions
Activate the skatepark theme
Open the site editor
Add a row block
Notice that the orientation settings are unavailable.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The block is actually being inserted with the flag set to false in some circumstances. It also seems this should be a block / theme config not a block attribute.
Just following up, the fix that @youknowriad put together in #39650 ensures that it's hidden in all cases for the Group / Row block — it looks like the "Transform to variation" should be used to switch orientation in this case, as the Group block needs to support floated layouts.
As of #39532 the visibility of the orientation control can be set per-block at the block.json level.
@apeatling@andrewserong@youknowriad thinking a bit more about this, I think the orientation should be showing for the Row block. There's nothing inherent about rows being purely horizontal, and there's value in a vertically organized flex container that do stuff like space-between, etc. Maybe we want the name of the block to change to "Stack" or something like that for extra clarity, but I feel we are lacking that option and Group on its own doesn't provide it, so the transform to variation menu doesn't make much sense.
Activity
mtias commentedon Mar 22, 2022
The block is actually being inserted with the flag set to false in some circumstances. It also seems this should be a block / theme config not a block attribute.
andrewserong commentedon Mar 23, 2022
Just following up, the fix that @youknowriad put together in #39650 ensures that it's hidden in all cases for the Group / Row block — it looks like the "Transform to variation" should be used to switch orientation in this case, as the Group block needs to support floated layouts.
As of #39532 the visibility of the orientation control can be set per-block at the
block.jsonlevel.mtias commentedon Mar 23, 2022
@apeatling @andrewserong @youknowriad thinking a bit more about this, I think the orientation should be showing for the Row block. There's nothing inherent about rows being purely horizontal, and there's value in a vertically organized flex container that do stuff like space-between, etc. Maybe we want the name of the block to change to "Stack" or something like that for extra clarity, but I feel we are lacking that option and Group on its own doesn't provide it, so the transform to variation menu doesn't make much sense.
youknowriad commentedon Mar 23, 2022
@mtias I'm trying that in #39690
apeatling commentedon Mar 24, 2022
"Stack" is common across other platforms (for example interface builder for iOS), and comes without the assumption of orientation. Thumbs up for that.