Skip to content

Default mobile menu close icon disappears when an additional icon contributes Wave classes #4704

Description

@pirate-bot

Summary

The mobile menu's close button can display only its background when the primary Menu Icon uses Default. The supplied screenshots show a visible hamburger before opening the menu but no close glyph afterward; selecting Wave reportedly restores the glyph.

Expected behavior is a visible close icon with Default selected. The blank control makes closing the open navigation less discoverable. Source inspection identifies a reachable configuration involving an additional Neve Pro Menu Icon; the customer's exact triggering settings remain unverified.

Customer context

  • Product / area: Neve Header Builder, mobile menu close button
  • Version: Customer versions not provided; inspected Neve source is v4.2.19
  • Environment: Mobile-width layout; WordPress, PHP, and browser versions unknown
  • Integration / third party: Ticket identifies Neve Pro usage; exact active modules and component settings not provided
  • Reported symptom: Default close icon is blank, while Wave reportedly works
  • Impact: The open menu's close control loses its visible glyph

Reproduction notes

Reported: select Default for the Menu Icon, open the mobile menu, and observe a close-button background without a glyph. Wave reportedly displays correctly.

Source-derived verification scenario, not runtime-reproduced:

  1. Enable Neve Pro's additional header components.
  2. Configure the primary Menu Icon as Default.
  3. Configure the additional Menu Icon as Wave, then remove that additional component from the layout while retaining its saved setting.
  4. Publish a mobile menu layout containing the close button and inspect the ordinary frontend.
  5. Check for hamburger--wave combined with icon-default, an empty hamburger-inner, and absent animated-icon styles.

Missing: the customer's saved component configuration and a local browser reproduction.

Diagnosis

Conclusion

Confirmed by source inspection and supporting customer screenshots. Close-button markup is selected from the aggregate filtered class string rather than solely from its resolved icon setting. An additional Pro Menu Icon configured as Wave can contribute a Wave class even when it is absent from the layout. With the primary icon set to Default, the resulting animated-icon markup has no corresponding generated icon styles. This is a reachable explanation, not a verified reconstruction of the customer's settings.

Where this likely occurs

  • header-footer-grid/templates/row-wrapper-mobile.php — mobile row template, top-level rendering scope, lines 25–34 and 48–64: independently obtains filtered classes and the contextual icon setting; an exact class-string comparison selects bars versus animated markup.
  • header-footer-grid/Core/Components/MenuIcon.php — MenuIcon::init() lines 112–124 and MenuIcon::add_menu_icon_classes() lines 134–151: each instance registers the shared filter and reads its own saved setting without checking layout activity.
  • header-footer-grid/Core/Components/MenuIcon.php — MenuIcon::load_scripts() lines 159–163 and MenuIcon::get_menu_style() lines 215–218: inactive instances do not enqueue their icon styles outside the Customizer, and Default returns no animated-icon CSS.
  • Companion Neve Pro Addon: includes/modules/header_footer_grid/components/menu_icon.php — Menu_Icon::__construct(), Menu_Icon::init(), and Menu_Icon::get_class_const(), lines 50–67 and 94–95: the additional instance inherits filter registration and uses a separate settings ID.

Engineering notes

A constructed reachable state is primary nav-icon set to Default, additional nav-icon_2 retaining Wave but removed from the layout, and a mobile menu layout that renders the close button. The additional instance remains registered and contributes hamburger--wave, while neither instance emits animated-icon CSS on the ordinary frontend. The primary opening control selects Default bars directly in header-footer-grid/templates/components/component-menu-icon.php, top-level rendering scope, lines 24–27 and 44–60, explaining why opening and closing controls can differ.

Both sibling repositories were inspected. The failing shared filter and template contract belongs to Neve. History shows the strict comparison predates the Wave option; commit 67df2cb04 introduced Wave, but no previously working equivalent configuration was established. No regression label is warranted.

Test coverage status

e2e-tests/specs/a11y-ready/submenu-keyboard.spec.ts lines 273–313 covers mobile expanded-state behavior, not close-glyph rendering or mixed settings across icon instances. No relevant coverage was found during inspection for an unused additional icon influencing the close button. Tests were not run; PHP is unavailable in the investigation environment.

What to verify or explore next

  • Reproduce the constructed Default-primary / unused-Wave-additional configuration on a local WordPress installation with Neve Pro Header Booster enabled.
  • Compare published frontend behavior with Customizer preview, where inactive components can enqueue styles.
  • Verify close-glyph visibility after changing the additional icon setting or removing its saved value.
  • Run the mobile accessibility suite alongside visual checks for supported sidebar layouts.

Unknowns / follow-up

The customer's exact component settings, active modules, installed versions, and custom CSS are unavailable. No full WordPress or browser runtime reproduction was performed. WordPress hook dispatch was assumed from the platform contract rather than verified from locally inspected core source.

Confidence

Confidence: 94/100

The supplied DOM and screenshots match a definite markup/style mismatch reachable through the inspected Pro component registration and Neve filter paths; the precise customer configuration remains unknown.


Source: HelpScout #3518569954
Generated by bug-report-triage (ID: bug-report-triage_6afdaf86a09fa9.82555700)

Activity

  1. added theissue type on Nov 18, 2026
  2. added
    customer report
    on Nov 18, 2026
  3. girishpanchal30 commented on Nov 19, 2026

    @girishpanchal30
    Contributor

    I have fixed it with PR #4706

  4. milicavs commented on Nov 19, 2026

    @milicavs

    🧪 QA steps and test links

    On mobile, the button that closes the open menu can lose its icon and show only an empty box. It happens when the header's Menu Icon is set to Default while Neve Pro's second Menu Icon is set to Wave but isn't placed in the header.

    Requires: Neve Pro with its extra header components (Header Booster) for the steps below. The test links run free Neve only.

    Link Build Bot check
    Reproduce the bug Neve 4.2.19 (released) ✅ Reproduced: at 375px wide, the open menu's close button is an empty bordered box with no icon
    Verify the fix PR #4706 build 42d89a4 ✅ Fixed: at 400px wide, the open menu's close button shows the default ✕

    In the links:

    • Steps 1 to 5 are already done, and the links open on the front page. Narrow the window (or use the browser's mobile view) to see the menu icon.
    • Neve Pro isn't in the links: a small must-use plugin stands in for its second Menu Icon set to Wave and left out of the header.
    • A three-item menu is set as the primary menu.
    • Tools → QA Logs shows debug.log.

    Reproduce on Neve 4.2.19 with Neve Pro:

    1. Make sure Neve Pro's Header Booster module is on.
    2. Appearance → Customize → Header, switch to the mobile view and add the second Menu Icon to the header.
    3. Open the second Menu Icon and set Menu Icon to Wave.
    4. Remove the second Menu Icon from the header.
    5. Open the original Menu Icon, check that Menu Icon is Default, and Publish.
    6. Open the site at mobile width and tap the menu icon.
    • Bug: the close button at the top of the open menu is an empty box, with no ✕.
    • Fixed: the close button shows the ✕.

    Assumption: the second Menu Icon comes from Neve Pro's Header Booster module; the customer's exact header settings are unknown.

    Edge cases
    • Both Menu Icons in the mobile header, Wave placed before Default: the close button follows the icon shown first in the mobile header (Wave).
    • Only the second Menu Icon in the header, set to Dots: the close button uses the Dots style.
    • Original Menu Icon set to a custom SVG, with another component after it in the mobile row: the close button shows that SVG.
    • Free Neve only, Menu Icon set to Wave: opening and closing look as before.
    • Customizer preview of each case: same close button as the live site.

    Fix: #4706 (open)

  5. Soare-Robert-Daniel commented on Nov 20, 2026

    @Soare-Robert-Daniel
    Contributor
  6. pirate-bot commented on Nov 20, 2026

    @pirate-bot
    CollaboratorAuthor

    QA agent — 🟢 Passing checks · The mobile menu's close button now shows its ✕ when Menu Icon is Default and Pro's unused second icon is set to Wave.

    We set up Neve with Neve Pro's Header Booster (seeded local license), set the header Menu Icon to Default and the second Pro Menu Icon to Wave without placing it in the header. On the released build the open menu's close button was an empty box; with this PR it shows the ✕, both on the live site and in the Customizer preview. The close button also follows whichever menu icon appears first in the mobile header (Wave, Dots, Donner), shows a custom SVG, and free Neve without Pro behaves as before. The PR's new unit tests pass.

    Worth a human look

    1. Check the customer's real header configuration once it is available (their exact settings were never provided).
    2. Try the legacy (non-migrated) header builder layout on a real site; it was covered only by the PR's unit tests.
    3. Check the close button with the dropdown mobile-menu style and other sidebar layouts (only slide-left was exercised).
    Checks (5 passed)
    • ✅ With Neve Pro's Header Booster on, the original Menu Icon set to Default and the second Menu Icon (nav-icon_2) set to Wave but not placed in the header, opening the mobile menu on the live site at 375px shows a close button with a visible close glyph (default bars forming an X), not an empty box; the close button markup has no hamburger--wave class and no empty icon-default hamburger-box. On the qa-base build the same setup renders hamburger--wave + icon-default with an empty hamburger-inner.
    • ✅ When both Menu Icons are in the mobile header with the Wave one (nav-icon_2) placed first, the open menu's close button uses the Wave style (hamburger--wave, icon-wave with hamburger-inner) and the glyph is visible; when only the second Menu Icon is in the header set to Dots, the close button uses the Dots style and is visible.
    • ✅ Regression matrix: original Menu Icon set to a custom SVG makes the close button show that SVG; free Neve only (Pro deactivated) with Menu Icon Wave keeps the Wave close button, and Default keeps the default bars.
    • ✅ In the Customizer preview of the reported scenario (Default original icon, unused Wave second icon), the open mobile menu's close button shows the same visible default close glyph as the live site.
    • ✅ The PR-added unit test file tests/test-neve-hfg-menu-icon-close-button.php passes against the PR head.

    Full report, evidence and session trail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug-reportbug-report-triagecustomer report

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions