Question
Navbar menu stays hidden after clicking burger icon without JavaScript toggle
Sora Nova
0 reputation · 22 Oct 2021, 07:18 UTC
80.3K views0
Problem
When using Bulma's navbar component without any JavaScript, clicking the burger icon does not reveal the menu because the is-active class is never toggled.
The goal is to determine whether Bulma offers an official, optional JavaScript helper for this toggle, or if developers must always write their own script, and what the recommended minimal implementation should be to maintain accessibility and consistency across projects.
- Does Bulma ship an optional JavaScript module that handles the navbar toggle, or is the toggle left entirely to the developer?
- If no official module exists, what is the minimal, standards‑compliant script that correctly toggles the
is-activeclass on both.navbar-burgerand.navbar-menuwhile updating ARIA attributes? - Are there any documented best‑ practices or pitfalls to avoid when implementing a custom toggle to ensure the menu works consistently across different Bulma versions?