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
Navigation block submenu dropdown spacing styles overridden by List block #57620
Comments
I think this is a duplicate of: Also related: A longer-term fix might be to add a classname to the List Block. See: |
Closing as a duplicate |
@talldan @ramonjd My bad I searched everywhere for Navigation block related issues but should have also looked at List block issues. I'll remember to do so next time. Still can you guys point me how to find if related/similar issue is already present, I mean is there any other rather efficient way to go at finding it? |
It is difficult with so many issues on the repo. I don't really have any good advice other than trying different labels and search terms. Often I know about the existence of duplicates from reading or being involved in the discussion on the other issue. |
Makes sense, I will try to be more involved as well in the coming days so that I don't end up posting a duplicate again. Thank you for your help Daniel 😃 |
Description
I found this bug while working with the Navigation block dropdown submenus. Specifically, the spacing styles of the dropdown menu gets overridden (at the front-end only, works fine in the editor) by List block styles when there is a submenu background color set in Navigation block.
These are the styles coming from the List block -
These are the styles that should take effect but gets overridden by the List block styles mentioned above-
This issue can be reproduced in any core theme, and I have tested it with TwentyTwentyFour to TwentyTwentyOne themes.
Proposed Solution -
To add preceding values in Navigation block styles -
I have tested this and it works without breaking any existing behavior.
I'll now go on to add a PR, I'm open to making any changes in it if there's an issue with the current solution.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screencast of the issue -
https://www.youtube.com/watch?v=-PiupdsKqxU&ab_channel=KrishnaisIndiehacking
Screenshot from the block editor where dropdowns work as expected -
Environment info
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: