Submenu font-size theme.json variable incorrectly affects parent menu-item #39263
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
When we set the font size on a submenu in theme.json, the top level navigation item is wrongfully scaled to this value.
How to solve:
CSS:
The font-size is currently set on this selector:
.wp-block-navigation-submenu
It should instead be on:
wp-block-navigation__submenu-container
Current fix:
.wp-block-navigation-submenu { font-size: inherit; }
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
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: