Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add desktop sub navigation support #105

Merged
merged 6 commits into from
Nov 12, 2024
Merged

Conversation

niccofyren
Copy link
Member

@niccofyren niccofyren commented Nov 12, 2024

Desktop part of #95

Should be enough to unblock any issues that either requires multiple levels of navigation or child-items without a top level page (we see some cases of this in current project due to content production delays). On mobile we still have a bit of room to go on before we are filled up

Introduces NavItem that essentially have four possible states (when being hovered). When not hovered it gets highlighted as active if itself or any child item matches current path (exactly)

Non-clickable top item, with children
Screenshot 2024-11-12 at 21 47 26

Non-clickable top item, no children (🤔)
Screenshot 2024-11-12 at 21 47 36

Clickable top item, with children
Screenshot 2024-11-12 at 21 47 50

Clickable top item, no children
Screenshot 2024-11-12 at 21 48 00

@niccofyren niccofyren requested a review from a team as a code owner November 12, 2024 20:53
@niccofyren niccofyren requested a review from mfyll November 12, 2024 20:53
Copy link

github-actions bot commented Nov 12, 2024

Preview Environment deleted

@niccofyren niccofyren merged commit c556a1f into main Nov 12, 2024
4 checks passed
@niccofyren niccofyren deleted the feat/header-sub-nav branch November 12, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant