mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
The homepage runs its own inline header enhancer instead of importing the shared header-enhancer.astro component, and that inline copy only ported the scroll-headroom and GitHub stars/version logic — it never included the hamburger toggle handler. As a result the mobile menu button rendered (and animated to an X via CSS) but clicking it did nothing on / and /<locale>/, while sub-pages that do import the shared enhancer worked fine. Port the same toggle handler into the homepage inline enhancer: click flips .is-open on header.nav (which CSS expands into the dropdown panel below 1080px), and outside-click, Escape, and any in-menu link close it, keeping aria-expanded in sync. Co-authored-by: Joey-nexu <joeylee12629@gmail.com> |
||
|---|---|---|
| .. | ||
| _components | ||
| _lib | ||
| content | ||
| pages | ||
| content-i18n.ts | ||
| content.config.ts | ||
| env.d.ts | ||
| globals.css | ||
| home-page-i18n.ts | ||
| i18n.ts | ||
| image-assets.ts | ||
| info-page-i18n.ts | ||
| landing-ui-i18n.ts | ||
| page.tsx | ||
| plugin-registry.ts | ||
| sub-pages.css | ||