#43553·frappe

Website navbar: the mobile menu (toggler) button shows no icon

Author: Sajith-K-SasiCreated Sep 29, 2026Updated Sep 29, 2026

Description of the issue

On website/portal pages, the navbar's mobile menu button (.navbar-toggler) is drawn as an empty box with no icon. On a phone this is the only way into the navbar, so it looks broken.

The cause is this rule in frappe/public/scss/website/navbar.scss, which is still on develop and version-16:

scss
.navbar-light {
	...
	.navbar-toggler .icon {
		stroke: none;
	}
}

The same rule appears under .navbar-primary .navbar-toggler. It looks like it was written for the older icon set, whose icon-menu was filled. The icons are now Lucide's, which are drawn with strokes only and no fill:

xml
<symbol id="icon-menu" viewBox="0 0 24 24">
  <path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path>
</symbol>

With stroke: none, nothing is drawn. In the browser, the toggler's <svg class="icon icon-lg"> computes stroke: none and fill: rgba(0, 0, 0, 0).

Context information (for bug reports)

Output of bench version

frappe 16.34.0

Steps to reproduce the issue

  1. Open any website page that uses the default navbar, e.g. /login or /me while signed in.
  2. Narrow the window below the lg breakpoint, or open the page on a phone.
  3. Look at the menu button at the top right.

Observed result

An empty bordered box, with no hamburger icon.

Expected result

The three-line menu icon, dark on .navbar-light and white on .navbar-primary.

Stacktrace / full error message

None, this is a styling issue.

Additional information

Suggested fix: delete both stroke: none rules.

diff
 .navbar-light {
 	border-bottom: 1px solid $border-color;
 	background: $navbar-bg;
-
-	.navbar-toggler .icon {
-		stroke: none;
-	}
 }
diff
 	.navbar-toggler {
 		border-color: rgba(255, 255, 255, 0.1);
-
-		.icon {
-			stroke: none;
-		}
 	}

The website bundle already styles .icon with stroke: var(--icon-stroke), and .navbar-primary svg use already sets --icon-stroke: white. So once these rules are gone, the icon is dark on the light navbar and white on the primary one. I confirmed the light case on 16.34.0 by overriding the rule in an app stylesheet (.navbar-light .navbar-toggler .icon { stroke: var(--icon-stroke); }): the icon then draws, and the button opens the menu as usual.

I'd be glad to send this as a PR, but I'm not on the vouched list. If a maintainer would vouch for me I'll open one; otherwise please feel free to apply the diff above. A backport to version-16 would be appreciated.