Skip to content

[Bug] [Feature Request?] Sticky Navbar Burgermenu disappearing #176

@schwaldi

Description

@schwaldi

Describe the bug
If I want to build a sticky navigation with the Block Builder,
it happens that the burger menu disappears on hover and focus.

To Reproduce
Steps to reproduce the behavior:
Here's the English translation of your instructions and observation:

  1. Create the header pattern and give the group a background (white).
  2. For example, on the "no title" template, the header is again placed in a group that is sticky.
  3. Super functional sticky navigation, but the following CSS class is appended to the burger menu: .has-background .wp-block-navigation__responsive-container-open:focus, .has-background .wp-block-navigation__responsive-container-open:hover { color: var(--wp--preset--color--base);}

Expected behavior
The color should be set based on the background. So, if the background is 'base,' the color should be 'contrast,' and vice-versa.

Screenshots
Image
Image

Debugging information (please complete the following information):

  • WordPress version 6.8.1, Gutenberg version 21.0.0, and Frost theme version 1.0.10.
  • Device: PC
  • OS: Windows 11
  • Browser Chrome, Firefox

I simply solved this with additional CSS. I thought I'd still write to you about it. Perhaps a change in the theme would be the more elegant solution.

Many thanks for your work and the great theme. 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions