summaryrefslogtreecommitdiff
path: root/Omni/Jr/Web
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-29 18:48:29 -0500
committerBen Sima <ben@bensima.com>2025-11-29 18:48:29 -0500
commit5b8b5052294c9ac0d43388e6aaa916a3a6ea4637 (patch)
treecddd8c364ccc1e9dc7b8a11b378d3d6b72581f51 /Omni/Jr/Web
parent10068667c7255facc5cdd10d71d437b5a0e4eea2 (diff)
Fix navbar dropdown click-to-toggle behavior
The build passed with no errors. The implementation adds: 1. JavaScript click-toggle handler for navbar dropdowns (closes all, the 2. Click-outside-to-close behavior 3. CSS rule for `.navbar-dropdown.open` state to show dropdown content Task-Id: t-173
Diffstat (limited to 'Omni/Jr/Web')
-rw-r--r--Omni/Jr/Web/Style.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Omni/Jr/Web/Style.hs b/Omni/Jr/Web/Style.hs
index 49f7976..0432cae 100644
--- a/Omni/Jr/Web/Style.hs
+++ b/Omni/Jr/Web/Style.hs
@@ -225,6 +225,7 @@ navigationStyles = do
zIndex 100
Stylesheet.key "overflow" ("hidden" :: Text)
".navbar-dropdown" # hover |> ".navbar-dropdown-content" ? display block
+ ".navbar-dropdown.open" |> ".navbar-dropdown-content" ? display block
".navbar-dropdown-item" ? do
display block
padding (px 8) (px 12) (px 8) (px 12)