Navigation Sub Menu: Bugs in color handling and block context #68350
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
Here are the issues identified while interacting with the Navigation Submenu component:
The color panel for the Navigation Submenu component allows setting text and background colors. However, these colors only work with predefined values sourced from
template/theme.json
. Custom values are not applied successfully.When text and background colors are set for the submenu component, they correctly apply to the submenu itself, leaving the overlay text and background settings unaffected in the editor (as intended). However, on the front end, these colors are mistakenly applied to the submenu container instead of the submenu parent, overriding the overlay settings and causing inconsistency between the
Editor
and theFront End
.I'm unsure if these issues are a regression resulting from recent changes to the component.
Step-by-step reproduction instructions
Post/Page
edit screen.Navigation Block
.permutations
fortext
andbackground
properties along withcustom colors
.Screenshots, screen recording, code snippet
Corresponding screenshots and recordings are provided in the issue description.
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: