Skip to content

css variables undefined for .nav-ul .sub-menu #4392

@velsietis

Description

@velsietis

Description

  • Neve Theme Version: 4.0.1
  • WordPress 6.8

Reproduction Steps:

Add a site menu with a sub menu. The sub menu items has a transparent background.

Additional Info

When I open Dev Tools in the browser it showed the the css variables --bgcolor, --overlaycolor are not defined for .nav-ul .sub-menu

I can see that's coming from here...

background: var(--bgcolor, var(--overlaycolor));

...but got a little lost in how you're handling the CSS variables so no Pull Request, just another open issue, sorry!

Workaround

Add this in Appearance > Customise > Additional CSS as a workaround:

:root{
  --bgcolor: var(--nv-site-bg);
}

Step-by-step reproduction instructions

Add a site menu with a sub menu. The sub menu items has a transparent background.

Screenshots, screen recording, code snippet or Help Scout ticket

No response

Environment info

No response

Is the issue you are reporting a regression

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions