-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Spacer block no longer inherits orientation #58894
Comments
@tellthemachines in #49322 updated this block to inherit the orientation from the parent's layout. Something must have happened in the mean time. |
I can't reproduce this on Gutenberg trunk, have you tried in on a clean install? |
If you are testing with TT4, you may not be able to reproduce this issue as the layout is already defined in the template part of the theme. I think you can reproduce this problem by inserting the navigation somewhere else or creating a new navigation. |
Oooh I see thanks! I can now reproduce this but it's not only in Gutenberg trunk, I can also see it in WP 6.4.3. Not sure if this can be classed as a regression but I agree it would be good to fix for this release 😅 |
I see what the problem is: we're checking the parent layout |
I suspect now that this never worked correctly and we somehow didn't notice until now 🤔 |
For clarity, I removed the label because it's meant for PRs not issues. |
@youknowriad oops to eager me! |
Description
When a spacer block is inserted in a navigation block which has a default horizontal orientation, the spacer block is oriented vertically.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
spacer-orientation-layout-bug.mp4
Environment info
Gutenberg trunk.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: