Skip to content

Bugfix/menu flyout#663

Merged
datdamnzotz merged 6 commits intoOrcpub:developfrom
codeGlaze:bugfix/menu-flyout
Apr 9, 2026
Merged

Bugfix/menu flyout#663
datdamnzotz merged 6 commits intoOrcpub:developfrom
codeGlaze:bugfix/menu-flyout

Conversation

@codeGlaze
Copy link
Copy Markdown

Summary

  • Replace per-tab Reagent atoms with CSS :hover / :focus-within for flyout visibility. On mobile, tapping one tab now closes the previous (focus is exclusive), and tapping outside dismisses all flyouts.
  • Elevate hovered/focused tab z-index so dropdown menus aren't obscured by adjacent tab icons.
  • Consolidate .env.* gitignore rules into a single glob pattern.

Test plan

  • Desktop: hover opens flyout, mouse-leave closes, only one open at a time
  • Desktop: hover through all My Content items without premature close
  • Mobile: tap opens flyout, tap again closes (toggle), tap different tab closes first
  • Mobile: tap outside header dismisses all flyouts
  • Mobile: flyout menu items are tappable and navigate correctly

…focus

Each header tab had its own Reagent atom controlling flyout visibility.
On mobile, opening one tab couldn't close another since atoms were
independent. Also no way to dismiss by tapping outside.

Replace with CSS :hover (desktop) and :focus-within (mobile tap).
Focus is inherently exclusive — opening one tab blurs the previous.
Tapping outside naturally blurs, closing all flyouts.

- Remove per-tab hovered? atoms from header-tab and header-tab2
- Add .header-flyout CSS class: hidden by default, shown on :hover/:focus-within
- Add tabindex=0 for focusability, mousedown handler for tap-to-toggle
- Flyout items call .blur() on click to dismiss after navigation
Adjacent header-tab elements create competing stacking contexts via
position:relative, causing their SVG icons to paint over the dropdown.
Elevate the hovered/focused tab's z-index above siblings.
@datdamnzotz datdamnzotz merged commit a090e8c into Orcpub:develop Apr 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants