diff options
| author | Matt Kosarek <matt.kosarek@canonical.com> | 2026-07-08 08:29:04 -0400 |
|---|---|---|
| committer | Matt Kosarek <matt.kosarek@canonical.com> | 2026-07-08 08:29:04 -0400 |
| commit | 418396ee5100eda8f6bc036ea35dbbe44db2f91a (patch) | |
| tree | 78686d2865e0cd18b97abb01ef7478d55ff6e28e /src/layouts/BaseLayout.astro | |
| parent | 168eb38557c8ac5698f3ac89b1385089b5b4a5cd (diff) | |
feature: update styling
Diffstat (limited to 'src/layouts/BaseLayout.astro')
| -rw-r--r-- | src/layouts/BaseLayout.astro | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index a2f0f77..61bc2dc 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -112,6 +112,11 @@ const { hamburger.addEventListener('click', openMenu); close.addEventListener('click', closeMenu); overlay.addEventListener('click', closeMenu); + + // Close menu when a theme button is picked + nav.querySelectorAll('[id^="theme_button"]').forEach(function(themeBtn) { + themeBtn.addEventListener('click', closeMenu); + }); })(); </script> </body> |
