-
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
Default gap is missing for the navigation block on the front of the website #42955
Comments
@jasmussen Do you have time to also look at this issue? |
Took as tab in #43422, but I'm not confident in the fix, so I'd appreciate a ton of testing. Also feel free to push directly to the branch if need be, as I have to move on to something else for the moment! Thank you for the ping. |
Turns out the fix above did not work, but the effort unearthed what's up:
The solution could be to provide this fallback value in Yes, that does make sense. However I couldn't quite get that to work:
In a quick attempt, I couldn't quite get that to work. (@andrewserong I seem to recall working on block gap with you — any insights?) |
Thanks for the ping! I'm travelling over the next week so mightn't be able to look at this closely until I'm back, but it looks like the Navigation block's styling is overriding the default flex gap in Classic themes: The default flex gap recently had its specificity reduced so that it would be easier for Classic themes to override the gap with their own values if they need to. I suspect the Navigation block's |
I think I've got a fix for this. I've opened up #43669 to remove the Please let me know if I've missed anything about how the Navigation block is expected to work, though. |
Description
With Gutenberg 13.8.0 or current trunk active, there is no horisontal spacing between the links in the navigation block on the front of the website, unless the theme has a theme.json file with appearanceTools or blockGap enabled: Basically any "classic" theme.
Step-by-step reproduction instructions
apprearanceTools
from theme.json in Emptytheme.Screenshots, screen recording, code snippet
Environment info
WordPress 6.0.1.
Gutenberg 13.8.
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: