Commit 9b9e2d1
fix(nav): keep tab active on nested routes (#117)
Fixes #26
Mobile tab active-state used exact route matching, so tabs lost their
highlight on descendant routes. Adds `fuzzy: true` to `useMatchRoute` so
parent tabs stay highlighted on nested routes, matching the desktop
`Link`'s existing behavior.
## Verification
- Navigate to a set detail page (`.../sets/$setSlug`) on mobile; the
Sets tab stays highlighted.
- Navigate to `.../schedule/timeline` or `.../schedule/list` on mobile;
the Schedule tab stays highlighted.
- Switch between tabs (Sets, Schedule, Map, Info, Social, Explore);
exactly one tab is highlighted at a time, no cross-activation.
- Desktop tab bar behavior is unchanged (still uses `Link activeProps`).
---
_Generated by [Claude
Code](https://claude.ai/code/session_014iiisPt8nyYMGcYfh9p5yo)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent a2f71ba commit 9b9e2d1
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments