Skip to content

Navigation/Submenu block: Explicit overlay colors do not affect the Submenu on the frontend #36439

@jasmussen

Description

@jasmussen

Description

Possibly related to #36429. When setting an explicit overlay color using the "Submenu & overlay background" property, it applies to submenus and submenu blocks in the editor only.

Any submenu on the frontend will not inherit the color:

Screenshot 2021-11-12 at 12 59 28

In the editor it works fine:
Screenshot 2021-11-12 at 12 59 35

Step-by-step reproduction instructions

Create a navigation menu with at least two levels of nesting.

Set an explicit overlay background color. Note that it doesn't apply to the submenu on the frontend.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] NavigationAffects the Navigation Block[Block] SubmenuAffects the Submenu Block - for submenus in navigation[Type] BugAn existing feature does not function as intended[Type] RegressionRelated to a regression in the latest release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions