WebsiteLive

Pandu

A drop-in navigation menu that turns a site’s plain list of links into dropdowns, a mega-menu and a phone drawer, fully usable by keyboard and screen reader.

Pandu: the mega-menu open on the demo site, the Pandu docs page, and a dropdown open

About the project

Built to answer a real Freelancer brief: replace a dated navigation bar with one that is polished, responsive, keyboard-accessible and easy to extend, without breaking the routes a site already has. Pandu starts from the plain HTML links a server already renders, so every page keeps working with JavaScript off, and one CSS file and one JavaScript file (7.1 KB together, gzipped, no framework) turn it into dropdowns, a mega-menu and a phone drawer. It follows the WAI-ARIA disclosure pattern rather than the application-style menu role: Enter or Space opens a section, the arrow keys move between items, Home and End jump, Esc closes and hands focus back, and the phone drawer moves focus inside, locks the page behind it and returns focus when it closes. It is shown on a demo site for an invented trekking outfitter in Ipoh, with a docs page for installing it, a keyboard map, a before-and-after against a deliberately old menu, and a recorded demo. It was checked in Chromium, Firefox and WebKit at 320 to 1440 pixels (213 checks, all passing), with zero WCAG 2.2 AA violations from axe-core, and is live on both a staging and a production address.

Accessibility (WCAG 2.2 AA)Vanilla JSCSSProgressive enhancementPlaywrightCloudflare Pages