Skip to content

Fix mobile NavBar dropdown stacking and label the GitHub link - #99

Merged
cmil merged 1 commit into
mainfrom
mobile-nav-fixes
Oct 21, 2026
Merged

cmil merged 1 commit into
mainfrom
mobile-nav-fixes

Conversation

@cmil

@cmil cmil commented Oct 21, 2026

Copy link
Copy Markdown
Member

Two fixes for the NavBar in the collapsed mobile menu:

  • Dropdown stacking: every NavMenu wrapper is relative, and the open MenuItems panel had no z-index. With several dropdowns stacked vertically on mobile, the menu buttons after the open dropdown (white text) painted over its panel. The panel now gets z-10. The storybook didn't show this because its only dropdown is followed by plain NavItem links. It does show up in the DraCor frontend, which has Corpora, Documentation and Tools dropdowns in a row.
  • GitHub link label: on mobile the link now shows the gitHubTitle text (default "GitHub") next to a smaller icon, so it reads like the other nav entries. This matches the current dracor.org production site. Desktop still shows the large icon only.

🤖 Generated with Claude Code

- Give NavMenu's dropdown panel z-10. Each NavMenu wrapper is
  `relative`, so in the stacked mobile menu the menu buttons following
  an open dropdown painted over its panel.
- Show the gitHubTitle text next to a smaller GitHub icon in the
  collapsed mobile menu, so the link reads like the other nav entries.
  The desktop layout is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.45%. Comparing base (c68bcd8) to head (d74b765).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
+ Coverage   95.44%   95.45%   +0.01%     
==========================================
  Files          34       34              
  Lines         351      352       +1     
  Branches      123      124       +1     
==========================================
+ Hits          335      336       +1     
  Misses          4        4              
  Partials       12       12              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cmil
cmil merged commit c2b35fd into main Oct 21, 2026
5 checks passed
@cmil
cmil deleted the mobile-nav-fixes branch October 21, 2026 21:48
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.

1 participant